mirror of
https://github.com/videojs/video.js.git
synced 2025-01-10 23:30:03 +02:00
82c8b80548
We added a feature so that remote text tracks can auto-removed when a source changes. However, in 6.x we changed the source behavior to be asynchronous meaning that some text tracks were accidentally being removed when they weren't supposed to be. For example: ```js var player = videojs('my-player'); player.src({src: 'video.mp4', type: 'video/mp4'}); // set second arg to false so that they get auto-removed on source change player.addRemoteTextTrack({kind: 'captions', src: 'text.vtt', srclang: 'en'}, false); ``` Now when the player loads, this captions track is actually missing because it was removed. Instead of adding auto-removal tracks immediately to the list, wait until we've selected a source before adding them in. Fixes #4403 and #4315. |
||
---|---|---|
.. | ||
mixins | ||
tech | ||
tracks | ||
utils | ||
button.test.js | ||
clickable-component.test.js | ||
close-button.test.js | ||
component.test.js | ||
controls.test.js | ||
events.test.js | ||
extend.test.js | ||
media-error.test.js | ||
menu.test.js | ||
modal-dialog.test.js | ||
player.test.js | ||
plugin-advanced.test.js | ||
plugin-basic.test.js | ||
plugin-static.test.js | ||
poster.test.js | ||
setup.test.js | ||
test-helpers.js | ||
video.test.js | ||
videojs-hooks.test.js |