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

Add hack to show video poster on ios safari #463

merged 1 commit into from May 17, 2018


None yet
3 participants

nd0ut commented May 16, 2018

Safari on iOS don't load first-frame poster for video without autoplay attribute.

There are two possible solutions: use autoplay or call video#load()

Using autoplay can cause video auto-playing in some cases described in Autoplay Policy. In the older browsers it will cause auto-playing in all cases. This is not expected behaviour.

So I've used second one. It seems that there is no any side effect.

@nd0ut nd0ut requested review from Zmoki and homm May 16, 2018


Zmoki approved these changes May 17, 2018


homm approved these changes May 17, 2018

@nd0ut nd0ut merged commit ce2eadf into master May 17, 2018

1 check passed

continuous-integration/travis-ci/push The Travis CI build passed

@nd0ut nd0ut deleted the fix/ios-safari-video-preview branch May 17, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment