A RetroSearch Logo

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

Search Query:

Showing content from http://developer.mozilla.org/en-US/docs/Web/API/MediaSource/canConstructInDedicatedWorker_static below:

MediaSource: canConstructInDedicatedWorker static property - Web APIs

MediaSource: canConstructInDedicatedWorker static property

Limited availability

Note: This feature is available in Dedicated Web Workers.

The canConstructInDedicatedWorker static property of the MediaSource interface returns true if MediaSource worker support is implemented, providing a low-latency feature detection mechanism.

If this were not available, the alternative would be a much higher latency approach such as attempting the creation of a MediaSource object from a dedicated worker and transferring the result back to the main thread.

Value

A boolean. Returns true if MediaSource worker support is implemented, or false otherwise.

Examples
if (MediaSource.canConstructInDedicatedWorker) {
  // MSE is available in workers; let's do this
}
Specifications Browser compatibility See also

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.4