This feature is not Baseline because it does not work in some of the most widely-used browsers.
The read-only sourceBuffer property of the TextTrack interface 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.
A SourceBuffer or null.
| Specification |
|---|
| Media Source Extensions™> # dom-texttrack-sourcebuffer> |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
sourceBuffer |
No | No | No | No | 8 | No | No | No | 13Exposed in Mobile Safari on iPad but not on iPhone. |
No | No | 13Exposed in Mobile Safari on iPad but not on iPhone. |
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/sourceBuffer