hyperoslo/Lightbox

Playing local videos not working.

berildoguc opened this issue · 0 comments

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?
Simulator Screen Shot - iPhone 8 - 2021-05-26 at 23 54 53