SourceBufferList

Limited availability

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

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

SourceBufferList インターフェイスは、複数の SourceBuffer オブジェクトの単純なコンテナリストを表します。

特定の MediaSource に追加された SourceBuffer を含むソースバッファのリストは、MediaSource.sourceBuffers プロパティを使用して取得できます。 個々のソースバッファは、配列演算子(つまり [])または forEach() などの関数を使用してアクセスできます。

EventTarget SourceBufferList

プロパティ

SourceBufferList.length 読取専用

リスト内の SourceBuffer オブジェクトの数を返します。

イベントハンドラ

SourceBufferList.onaddsourcebuffer

addsourcebuffer イベントのイベントハンドラ。

SourceBufferList.onremovesourcebuffer

removesourcebuffer イベントのイベントハンドラ。

メソッド

親インターフェイスである EventTarget からメソッドを継承します。

SourceBufferList: indexed property getter

このゲッターにより、リスト内の SourceBuffer オブジェクトに配列演算子(つまり [])でアクセスできます。

未定

仕様書

Specification
Media Source Extensions™
# sourcebufferlist

ブラウザーの互換性

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
SourceBufferList
addsourcebuffer event
Available in workers
Experimental
length
Available in workers
Experimental
removesourcebuffer event
Available in workers
Experimental

Legend

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

Full support
Full support
Partial support
Partial support
No support
No support
Experimental. Expect behavior to change in the future.
Requires a vendor prefix or different name for use.
Has more compatibility info.

関連情報