1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-04 10:34:51 +02:00
video.js/test/unit
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
..
mixins fix: Allow evented objects, such as components and plugins, to listen to the window object in addition to DOM objects. (#5255) 2018-06-20 17:05:33 -04:00
tech feat(autoplay): extend autoplay option for greater good (#5209) 2018-06-21 14:32:07 -04:00
tracks feat(text-track-display): Extend the constructColor function to handle 6 digit hex codes (#5238) 2018-06-21 14:20:12 -04:00
utils refactor: remove IE8 specific changes (#5041) 2018-03-23 13:25:12 -04:00
autoplay.test.js feat(autoplay): extend autoplay option for greater good (#5209) 2018-06-21 14:32:07 -04:00
button.test.js fix: Reduce the multiple-announcement by screen readers of the new name of a button when its text label changes. (#5158) 2018-05-11 14:31:28 -04:00
clickable-component.test.js test: update tests to use qunit 2 assert format (#4753) 2017-11-16 18:12:09 -05:00
close-button.test.js @pagarwal123 updated some test code to pass linter 2016-08-05 11:38:08 -04:00
component.test.js feat: playerresize event in all cases (#4864) 2018-01-30 13:26:21 -05:00
controls.test.js refactor: remove IE8 specific changes (#5041) 2018-03-23 13:25:12 -04:00
events.test.js fix(events): triggering with an object had incorrect target property on event object (#4993) 2018-03-05 16:42:06 -05:00
extend.test.js @misteroneill updated tests to qunit 2.0. closes #3509 2016-08-12 13:51:31 -04:00
media-error.test.js @misteroneill fixed IE8 media error test failure. closes #3568 2016-08-24 13:48:39 -04:00
menu.test.js feat: playerresize event in all cases (#4864) 2018-01-30 13:26:21 -05:00
modal-dialog.test.js test: fix modal dialog test for showing controls (#4707) 2017-10-31 11:35:01 -04:00
player-play.test.js fix(Player#play): Wait for loadstart in play() when changing sources instead of just ready. (#4743) 2017-11-16 16:41:01 -05:00
player.test.js fix: make sure source options are passed through (#5241) 2018-06-11 13:47:36 -04:00
plugin-advanced.test.js feat: add a version method to all advanced plugin instances (#4714) 2017-11-07 15:48:24 -05:00
plugin-basic.test.js feat: Add 'beforepluginsetup' event and named plugin setup events (e.g. 'pluginsetup:foo') (#4255) 2017-05-11 17:13:22 -04:00
plugin-static.test.js chore(test): silence plugin warning from test (#4173) 2017-03-07 14:13:19 -05:00
poster.test.js refactor: remove IE8 specific changes (#5041) 2018-03-23 13:25:12 -04:00
resize-manager.test.js refactor: remove IE8 specific changes (#5041) 2018-03-23 13:25:12 -04:00
setup.test.js feat: add 'playsinline' player option (#4348) 2017-05-12 16:39:37 -04:00
sourceset.test.js feat: copy properties from <video-js> to the media el (#5039) 2018-05-09 15:55:29 -04:00
test-helpers.js refactor: remove IE8 specific changes (#5041) 2018-03-23 13:25:12 -04:00
video.test.js fix(player): video-js embed missing video-js class (#5194) 2018-05-22 21:44:35 -04:00
videojs-hooks.test.js fix: Fix an issue where hookOnce failed for the 'beforesetup' hook. (#4841) 2018-01-03 16:57:17 -05:00