AudioTrack.sourceBuffer

The read-only AudioTrack 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 = AudioTrack.sourceBuffer;

Value

A SourceBuffer or null.

Specifications

Specification
Media Source Extensions™
# dom-audiotrack-sourcebuffer

Browser compatibility

BCD tables only load in the browser