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. |
||
---|---|---|
.. | ||
html5.test.js | ||
middleware.test.js | ||
tech-faker.js | ||
tech.test.js |