-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
Milestone
Description
What version of Hls.js are you using?
0.12.4
What browser and OS are you using?
Chrome 73 on macOS
Test stream:
Checklist
- The issue observed is not already reported by searching on Github under https://github.com/video-dev/hls.js/issues
- The issue occurs in the stable client on https://hls-js.netlify.com/demo and not just on my page
- The issue occurs in the latest client on https://hls-js-latest.netlify.com/demo and not just on my page
- The stream has correct Access-Control-Allow-Origin headers (CORS)
- There are no network errors such as 404s in the browser console when trying to play the stream
Steps to reproduce
- Open the test stream permalink above. Once playback begins, enable one of the subtitles tracks
- In the browser console, run
hls.destroy() - Observe the video element's
TextTrackListis still populated with tracks and cues, see below screenshot. - Switch to test stream to 'CNN special report, with CC``
- Observe text tracks from the previous playback session still exist and are selectable.
Expected behavior
I would expect that as part of the detaching phase, the TextTrackList would also be cleaned up / reset. At least having hls.js clean up what it created, to the best of its ability.
Actual behavior
It's left as-is, leaving tracks (which is expected, no way to remove them) and their cues in place. This can cause odd behaviour with switching between content.
