[media-source] TrackList and Tracks shouldn't be exposed in a DedicatedWorker. (#361)

jyavenard has just created a new issue for https://github.com/w3c/media-source:

== TrackList and Tracks shouldn't be exposed in a DedicatedWorker. ==
A SourceBuffer exposes all its tracks related objects in a Worker
https://w3c.github.io/media-source/#webidl-544711679
  readonly attribute [AudioTrackList](https://html.spec.whatwg.org/multipage/media.html#audiotracklist) [audioTracks](https://w3c.github.io/media-source/#dom-sourcebuffer-audiotracks);
  readonly  attribute [VideoTrackList](https://html.spec.whatwg.org/multipage/media.html#videotracklist) [videoTracks](https://w3c.github.io/media-source/#dom-sourcebuffer-videotracks);
  readonly  attribute [TextTrackList](https://html.spec.whatwg.org/multipage/media.html#texttracklist) [textTracks](https://w3c.github.io/media-source/#dom-sourcebuffer-texttracks);

Track objects are currently only exposed at the Window level 
An issue was open to expose them at the Worker level in #280 

As noted in #280 
There are unfortunately much more DOM objects that need updating, in particular TextTrackCueList / TextTrackCue ; in TextTrack the method addCue and removeCue which have references on how they are to be rendered on the MediaElement (https://w3c.github.io/webvtt/#rules-for-updating-the-display-of-webvtt-text-tracks) with their respective CSS block boxes etc..
while those examples are in relation to WebVTT, there's nothing preventing the use of WebVTT cues in inbandTextTrack

None of which is applicable with DedicatedWorker

Considering there are no User Agent other than webkit implementing Tracks objects in the SourceBuffer when in a DedicatedWorker

We think that those objects shouldn't be exposed in a Worker as they wouldn't be usable anyway.

Please view or discuss this issue at https://github.com/w3c/media-source/issues/361 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 14 January 2025 22:08:56 UTC