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

video doesn't load when using "loadeddata" on iOS 13.7 with cordova. #5368

Closed
Kosmoon opened this issue Oct 20, 2020 · 3 comments
Closed

video doesn't load when using "loadeddata" on iOS 13.7 with cordova. #5368

Kosmoon opened this issue Oct 20, 2020 · 3 comments

Comments

@Kosmoon
Copy link

Kosmoon commented Oct 20, 2020

Tested on iOS 13.7 on cordova, the loader never fires the "complete" event when using "loadeddata" as loadEvent for a video. It seems that its waiting for a user interaction.
However it works when setting asBlob to "true"

@photonstorm
Copy link
Collaborator

I can't see how you can avoid this. It's up to your game to get that user interaction from them before you try and load the video. It's not really anything I can enforce on a code level. Failing that, load it as a blob?

@spayton
Copy link
Contributor

spayton commented Oct 27, 2020

Is this related to #4910

@Kosmoon
Copy link
Author

Kosmoon commented Oct 29, 2020

I can't see how you can avoid this. It's up to your game to get that user interaction from them before you try and load the video. It's not really anything I can enforce on a code level. Failing that, load it as a blob?

Yep loading it as blob resolves the issue and works both for iOS and Android, tested on many devices from old to new.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants