Delete a TextTrack from a video
问题 Is there a good way to delete a single TextTrack added via JavaScript to a HTML5 <video> tag? The following code is a simple demo of how to add a track, but I haven't found a good way to remove one: document.querySelector('video#myVideo').addTextTrack(...); 回答1: There is no mechanism to remove an added text-track (probably a flaw (?) in the current specification. There is also an onremovetrack event but...). The only thing we can do is to disable or hide it. Make sure you keep a reference to