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

AVFoundation issues - Can't play URLs from firebase #46

Open
juliaYamamoto opened this issue Oct 1, 2022 · 2 comments
Open

AVFoundation issues - Can't play URLs from firebase #46

juliaYamamoto opened this issue Oct 1, 2022 · 2 comments

Comments

@juliaYamamoto
Copy link

Hi! I am having an issue trying to play a video that I get from Firebase.

Error:
Error Domain=AVFoundationErrorDomain Code=-11828 "Cannot Open" UserInfo={NSLocalizedFailureReason=This media format is not supported., NSLocalizedDescription=Cannot Open, NSUnderlyingError=0x600003f987b0 {Error Domain=NSOSStatusErrorDomain Code=-12847 "(null)"}}

According to apple, Code= -11828 is The system can’t open the file because it’s in an unrecognized format.
I couldn't find what Code=-12847 is.

These video urls don't come with the extension of the file, like .mov or .mp4. I tried to apply it manually without success.
They work on browser and they work when I try to use AVPlayer.

Any idea of what might be going wrong?
I really want to use this library as it's very complete and well done :)

I'm sorry I can't give you any links, but I can give you any other information that could help.
Thanks!

@wxxsw
Copy link
Owner

wxxsw commented Nov 8, 2022

You can check if response.mimeType matches "video/..."

@Samigos
Copy link

Samigos commented Dec 5, 2022

I'm facing the exact same problem! I'm providing a public URL of a video/mp4 file and it throws this error!

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

3 participants