w3c / media-source

Media Source Extensions
https://w3c.github.io/media-source/
Other
268 stars 57 forks source link

No handling for when the MediaSource constructed in a DedicatedWorkerGlobalScope goes out of scope #348

Open jyavenard opened 7 months ago

jyavenard commented 7 months ago

The current "Detaching from a media element" [1] handles the case where the media element is being removed or unusable (transitioned to NETWORK_EMPTY).

Such definition is sufficient when the MediaSource wasn't constructed in a DedicatedWorkerGlobakScope, but otherwise isn't the case.

a MediaSource constructed in a worker can be deleted at any time, such as when the DedicatedWorkerGlobalScope itself goes out of scope.

The steps on what should happen to the HTMLMediaElement remain undefined.

[1] https://w3c.github.io/media-source/#mediasource-detach