A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/w3c/media-source/issues/276 below:

Consider adding a "closing" readyState to explain new `InvalidStateError` exception when closing underway · Issue #276 · w3c/media-source · GitHub

MSE-in-Workers feature issue is #175

This issue tracks discussing an additional readyState usable by apps to understand when a worker MediaSource object is in the process of being closed or detached-from by the formerly-attached HTMLMediaElement. Implementations may choose to throw InvalidStateError exception when servicing requests on a worker-owned MediaSource or SourceBuffer that require readyState to not be closed, yet the implementation has begun but not yet fully completed the steps involved in reaching closed readyState.

For example, setting the mode attribute of a SourceBuffer requires essentially that the parent MediaSource not be closed nor updating. But if it knows that it will be closing imminently due to some internal notification from the implementation of its attachment to HTMLMediaElement, then it may throw exception. Having a distinct readyState for this scenario would assist worker API usage debugging (see an example of such at #175 (comment)).


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.3