VideoTrack.sourceBuffer

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.

Syntax

var sourceBuffer = VideoTrack.sourceBuffer;

Value

A SourceBuffer or null.

Specifications

Specification Status Comment
Media Source Extensions
The definition of 'VideoTrack: sourceBuffer' in that specification.
Recommendation  

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
sourceBufferChrome Full support 51
Disabled
Full support 51
Disabled
Disabled From version 51: this feature is behind the enable-experimental-web-platform-features preference (needs to be set to enabled). To change preferences in Chrome, visit chrome://flags.
Edge Full support 79
Disabled
Full support 79
Disabled
Disabled From version 79: this feature is behind the enable-experimental-web-platform-features preference (needs to be set to enabled).
No support 12 — 79
Firefox No support NoIE No support NoOpera Full support 38
Disabled
Full support 38
Disabled
Disabled From version 38: this feature is behind the enable-experimental-web-platform-features preference (needs to be set to enabled).
Safari Full support 6.1WebView Android No support NoChrome Android Full support 51
Disabled
Full support 51
Disabled
Disabled From version 51: this feature is behind the enable-experimental-web-platform-features preference (needs to be set to enabled). To change preferences in Chrome, visit chrome://flags.
Firefox Android No support NoOpera Android Full support 41
Disabled
Full support 41
Disabled
Disabled From version 41: this feature is behind the enable-experimental-web-platform-features preference (needs to be set to enabled).
Safari iOS Full support 7Samsung Internet Android No support No

Legend

Full support  
Full support
No support  
No support
User must explicitly enable this feature.
User must explicitly enable this feature.