Back to Content

TextTrack: sourceBuffer property

files/en-us/web/api/texttrack/sourcebuffer/index.md

latest523 B
Original Source

{{APIRef("Media Source Extensions")}}

The read-only sourceBuffer property of the {{domxref("TextTrack")}} interface returns the {{domxref("SourceBuffer")}} that created the track, or null if the track was not created by a {{domxref("SourceBuffer")}} or the {{domxref("SourceBuffer")}} has been removed from the {{domxref("MediaSource.sourceBuffers")}} attribute of its parent media source.

Value

A {{domxref("SourceBuffer")}} or null.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}