Open berildoguc opened 3 years ago
Hi, I want to play local videos which fetched from assets. Here is my code :
manager.requestAVAsset(forVideo: media, options: videoOption, resultHandler: { (asset, audioMix, info) in if let urlAsset = asset as? AVURLAsset { let localVideoUrl = urlAsset.url images.append(LightboxImage(image: UIImage(named: "play2")!, text: "", videoURL: localVideoUrl)) } })
But screen is empty. Anyone can help me, please?
Hi, I want to play local videos which fetched from assets. Here is my code :
manager.requestAVAsset(forVideo: media, options: videoOption, resultHandler: { (asset, audioMix, info) in if let urlAsset = asset as? AVURLAsset { let localVideoUrl = urlAsset.url images.append(LightboxImage(image: UIImage(named: "play2")!, text: "", videoURL: localVideoUrl)) } })
But screen is empty. Anyone can help me, please?