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

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
sourceBuffer
51
79
12-79
No
No
38
7
No
51
No
41
13
Exposed in Mobile Safari on iPad but not on iPhone.
No

© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/VideoTrack/sourceBuffer