Modernizr: videoautoplay not working on Safari 11

Created on 26 Sep 2017  路  3Comments  路  Source: Modernizr/Modernizr

Because Safari 11 disables "unmuted Videos" modernizr gives me a wrong result.
The modernizr-test here should include the video-attribute "muted", so that the test returns a positive result!

Most helpful comment

With or without this attribute, the test return false for me - Safari 11 - Macos Sierra.
This test work well https://codepen.io/paulorely/pen/QveEGy
Thanks to @paulorely
https://github.com/Modernizr/Modernizr/issues/1095

All 3 comments

With or without this attribute, the test return false for me - Safari 11 - Macos Sierra.
This test work well https://codepen.io/paulorely/pen/QveEGy
Thanks to @paulorely
https://github.com/Modernizr/Modernizr/issues/1095

It's always returning as false for me on Safari 11 also.

Running macOS Sierra 10.12.6 (16G29)
Safari 11.0 (12604.1.38.1.7)

Apparently, Safari 11 starts autoplayback only if video element is visible on the client area. So, if the video element style contains 'display: none' or 'height == 0' or 'width == 0' safari does not start it

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MariuszGorzoch picture MariuszGorzoch  路  9Comments

lovetrivedi picture lovetrivedi  路  4Comments

yukulele picture yukulele  路  10Comments

RehanSaeed picture RehanSaeed  路  6Comments

YounesKeraressi picture YounesKeraressi  路  8Comments