1
0
mirror of https://github.com/videojs/video.js.git synced 2025-01-10 23:30:03 +02:00
video.js/test/unit/tech
Gary Katsevman 82c8b80548 fix: auto-removal remote text tracks being removed when not supposed to (#4450)
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.
2017-06-28 16:38:29 +10:00
..
html5.test.js feat: add 'playsinline' player option (#4348) 2017-05-12 16:39:37 -04:00
middleware.test.js feat: Update MW to require a factory, add *-mw (#3969) 2017-01-27 15:09:27 -05:00
tech-faker.js fix: cues at startTime 0 do not fire (#4152) 2017-03-02 14:35:45 -05:00
tech.test.js fix: auto-removal remote text tracks being removed when not supposed to (#4450) 2017-06-28 16:38:29 +10:00