Back to Content

AudioTrack: sourceBuffer property

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

latest511 B
Original Source

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

The read-only {{domxref("AudioTrack")}} property sourceBuffer 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}}