mirror of
https://github.com/videojs/video.js.git
synced 2024-12-25 02:42:10 +02:00
e8e4fe2745
This PR extends the `autoplay` to the player with a few options that should hopefully make working with browsers that disable unmuted autoplay by default easier. The current boolean option will match current behavior and any unknown option will be treated as it does now. The new options are the string values `muted`, `play`, and `any`. - `muted` will mute the element and call `play()` on `loadstart`, - `play` will call `play()` on `loadstart()`, this is similar to the `autoplay` attribute - `any` will call `play()` on `loadstart()` but if it fails it will try muting the video and calling `play()` again. |
||
---|---|---|
.. | ||
html5.test.js | ||
middleware.test.js | ||
tech-faker.js | ||
tech.test.js |