hyperoslo / hyperoslo/Lightbox

Playing local videos not working.

Open
#277 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
1.7k
Forks
332
PR merge metrics
No merged PRs in 30d

Description

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](https://user-images.githubusercontent.com/17595204/119729855-cb8ae900-be7d-11eb-9b27-ca7be744f3b8.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.