1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-25 02:42:10 +02:00
video.js/test/unit/tech
Brandon Casey e8e4fe2745 feat(autoplay): extend autoplay option for greater good (#5209)
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.
2018-06-21 14:32:07 -04:00
..
html5.test.js feat: split overrideNative method into separate methods (#5107) 2018-04-19 20:11:11 -04:00
middleware.test.js fix: cache middleware instances per player (#4939) 2018-02-12 17:30:27 -05:00
tech-faker.js feat(autoplay): extend autoplay option for greater good (#5209) 2018-06-21 14:32:07 -04:00
tech.test.js feat: Queue playback events when the playback rate is zero and we are seeking (#5024) 2018-04-17 15:28:35 -04:00