MediaSource: removeSourceBuffer() メソッド
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
removeSourceBuffer()
は MediaSource
インターフェイスのメソッドで、指定された SourceBuffer
をこの MediaSource
オブジェクトに関連付けられた SourceBufferList
リストから削除します。
構文
js
removeSourceBuffer(sourceBuffer)
引数
sourceBuffer
-
削除する
SourceBuffer
オブジェクト。
返値
なし (undefined
)。
例外
NotFoundError
DOMException
-
指定された sourceBuffer が
MediaSource.sourceBuffers
に存在しない場合に発生します。
例
js
for (let i = 0; i < 10; i++) {
const sourceBuffer = mediaSource.addSourceBuffer(mimeCodec);
}
mediaSource.removeSourceBuffer(mediaSource.sourceBuffers[0]);
仕様書
Specification |
---|
Media Source Extensions™ # dom-mediasource-removesourcebuffer |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
removeSourceBuffer |
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.