Re: Lack of removeTextTrack?

Ian,


Le 25 févr. 2015 à 05:38, Ian Devlin <ian@iandevlin.com> a écrit :
> I was exploring the Text Track API the other day and noticed that although there's a function to add a text track to media, addTextTrack() (http://www.w3.org/html/wg/drafts/html/master/#dom-media-addtexttrack) there doesn't seem to be any way to remove one, for example removeTextTrack().

I don't know myself.
Digging around:

# Apple
* Bug 114630: HTMLMediaElement::removeTextTrack should clear track client (FIXED)
  https://bugs.webkit.org/show_bug.cgi?id=114630

# Mozilla
* Bug 891052 - [webvtt] Implement RemoveTextTrack() (INVALID)
  https://bugzilla.mozilla.org/show_bug.cgi?id=891052
  According to the discussion on the W3C bug this won't be 
  implemented in the near future as it wouldn't be good to 
  be able to remove TextTracks that have been sourced from 
  the media resource or from TrackElement for that matter.

# Google
  Issue 249427: Implement HTMLMediaElement.audioTracks & HTMLMediaElement.videoTracks
  https://code.google.com/p/chromium/issues/detail?id=249427#c6

# W3C
* Bug 22597 - Add API for RemoveTextTrack() (WONTFIX)
  https://www.w3.org/Bugs/Public/show_bug.cgi?id=22597
* List results
  https://www.w3.org/Search/Mail/Public/search?keywords=removetexttrack


-- 
Karl Dubost 🐄
http://www.la-grange.net/karl/

Received on Wednesday, 25 February 2015 02:12:06 UTC