MediaSource: canConstructInDedicatedWorker 静的プロパティ

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Experimental: これは実験的な機能です。
本番で使用する前にブラウザー互換性一覧表をチェックしてください。

canConstructInDedicatedWorkerMediaSource インターフェイスの静的プロパティで、 MediaSource ワーカー対応が実装されていれば true を返し、遅延の少ない機能検出メカニズムを提供します。

もしこれが利用できなければ、専用ワーカーから MediaSource オブジェクトを生成し、その結果をメインスレッドに移譲するといった、レイテンシーのかなり高い手法を取ることになります。

論理値です。 MediaSource ワーカー対応が実装されていれば true を返し、そうでなければ false を返します。

js
if (MediaSource.canConstructInDedicatedWorker) {
  // MSE is available in workers; let's do this
}

仕様書

Specification
Media Source Extensions™
# dom-mediasource-canconstructindedicatedworker

ブラウザーの互換性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
canConstructInDedicatedWorker static property

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
Partial support
Partial support
No support
No support

関連情報