'Unable to play video with AVPlayerViewController in iOS 15
I am using simple piece of code to play video in iOS, and it was working perfectly fine till iOS 14, but suddenly this piece of code is not able to play .mov and .mp4 files in iOS 15
let videoController = AVPlayerViewController()
videoController.player = AVPlayer(url: videoURL)
from.present(videoController, animated: true) {
videoController.player?.play()
}
Any help will be appreciated. Thanks
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
