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

Autoplay Play video when click on poster in iphone #1364

Closed
kmahadev opened this issue Jul 24, 2014 · 1 comment
Closed

Autoplay Play video when click on poster in iphone #1364

kmahadev opened this issue Jul 24, 2014 · 1 comment

Comments

@kmahadev
Copy link

Hi,

I am loading the video poster first, then click on that poster video is loaded and calling the play() function to play the video. This works fine in all the desktop browsers and mobile except iphone and ipad.

In iphone the poster get loaded then click on the poster video gets loaded and again I see the video poster with play button (now this is the default player of iphone), so I again need to click the play button to play the video.

Expectation : video should load when click on poster and autoplay in iphone, without clicking twice.

Regards,
Karthik

@gkatsev
Copy link
Member

gkatsev commented Jul 24, 2014

Unfortunately, iphones are very tricky and limited.
You cannot autoplay videos on iOS because of Apple's limitations. Also, playing a video in the first place requires direct user interaction. Unfortunately, waiting for the video to load to call play on it after the poster is clicked is too long a time for iOS to allow that.
Unfortunately, there's nothing that videojs can do to fix or mitigate this issue.

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

No branches or pull requests

3 participants