MediaSource: canConstructInDedicatedWorker 静的プロパティ
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental: これは実験的な機能です。
本番で使用する前にブラウザー互換性一覧表をチェックしてください。
canConstructInDedicatedWorker
は MediaSource
インターフェイスの静的プロパティで、 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 GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
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
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.