-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Player.play() does not return promise #5362
Comments
The
We are currently undertaking some work to improve this situation, though, but hopefully that helps you understand the current situation. |
I did work around this using |
I'm about to merge #5227 which should greatly improve returning |
Description
I seem not to get promise from
player.play()
method call.Steps to reproduce
player.play()
Results
Expected
Promise as return value for supported browsers, undefined in others.
Actual
Undefined only.
Additional Information
Please include any additional information necessary here. Including the following:
versions
videojs
7.2.0
browsers
Chrome, iOS (probably all that support Promise..., therefor all expect IE)
OSes
Probably all?
A bit of background
player.play()
does not work on iOS, if you get source to be played via http request or other asynchronous means. Therefor I need to intercept, if the play method succeeded, or failed. To my knowledge, all browsers that do preventplayer.play
also supports the promise from play method, therefor we should be able to intercept this and show some button to play the video.The text was updated successfully, but these errors were encountered: