Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playing local videos not working. #277

Open
berildoguc opened this issue May 26, 2021 · 0 comments
Open

Playing local videos not working. #277

berildoguc opened this issue May 26, 2021 · 0 comments

Comments

@berildoguc
Copy link

berildoguc commented May 26, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant