The read-only VideoTrack
property sourceBuffer
returns the SourceBuffer
that created the track, or null if the track was not created by a SourceBuffer
or the SourceBuffer
has been removed from the MediaSource.sourceBuffers
attribute of its parent media source.
var sourceBuffer = VideoTrack.sourceBuffer;
A SourceBuffer
or null.
Specification | Status | Comment |
---|---|---|
Media Source Extensions The definition of 'VideoTrack: sourceBuffer' in that specification. | Recommendation |
Desktop | ||||||
---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
Basic support | ? | ? | ? | ? | ? | ? |
Mobile | |||||||
---|---|---|---|---|---|---|---|
Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
Basic support | ? | ? | ? | ? | ? | ? | ? |
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/VideoTrack/sourceBuffer