Extends
Properties
mode
mode: AppendModeGet or set the append mode. For additional information, see https://www.w3.org/TR/media-source-2/#dom-sourcebuffer-mode.
updating
Checks if Source Buffer is upating track buffers. For additional information, see https://www.w3.org/TR/media-source-2/#dom-sourcebuffer-updating.readonlyupdating:boolean
buffered
readonly buffered: TimeRanges
Gets the Time ranges of the buffered media.
For additional information, see
https://www.w3.org/TR/media-source-2/#dom-sourcebuffer-buffered.
timestampOffset
timestampOffset: number
Get or set the timestamp offset to be applied to every coded frame.
For additional information, see
https://www.w3.org/TR/media-source-2/#dom-sourcebuffer-timestampoffset.
audioTracks
readonly audioTracks: AudioTrackList
Gets the audio track list.
For additional information, see
https://www.w3.org/TR/media-source-2/#dom-sourcebuffer-audiotracks.
videoTracks
readonly videoTracks: VideoTrackList
Gets the video track list.
For additional information, see
https://www.w3.org/TR/media-source-2/#dom-sourcebuffer-videotracks.
textTracks
readonly textTracks: TextTrackList
Gets the text track list.
For additional information, see
https://www.w3.org/TR/media-source-2/#dom-sourcebuffer-texttracks.
appendWindowStart
appendWindowStart: number
Get or Set the append window start position in seconds.
For additional information, see
https://www.w3.org/TR/media-source-2/#dom-sourcebuffer-appendwindowstart.
appendWindowEnd
appendWindowEnd: number
Get or set the append window end position in seconds.
For additional information, see
https://www.w3.org/TR/media-source-2/#dom-sourcebuffer-appendwindowend.
onupdatestart
onupdatestart: EventListenerFor additional information, see https://www.w3.org/TR/media-source-2/#dom-sourcebuffer-onupdatestart
Parameters
event?
import("./EventTargetInterface").Event | import("./EventTargetInterface").TrackEvent | import("./EventTargetInterface").MediaEncryptedEvent
onupdate
onupdate: EventListenerFor additional information, see https://www.w3.org/TR/media-source-2/#dom-sourcebuffer-onupdate
Parameters
event?
import("./EventTargetInterface").Event | import("./EventTargetInterface").TrackEvent | import("./EventTargetInterface").MediaEncryptedEvent
onupdateend
onupdateend: EventListenerFor additional information, see https://www.w3.org/TR/media-source-2/#dom-sourcebuffer-onupdateend
Parameters
event?
import("./EventTargetInterface").Event | import("./EventTargetInterface").TrackEvent | import("./EventTargetInterface").MediaEncryptedEvent
onerror
onerror: EventListenerFor additional information, see https://www.w3.org/TR/media-source-2/#dom-sourcebuffer-onerror
Parameters
event?
import("./EventTargetInterface").Event | import("./EventTargetInterface").TrackEvent | import("./EventTargetInterface").MediaEncryptedEvent
onabort
onabort: EventListenerFor additional information, see https://www.w3.org/TR/media-source-2/#dom-sourcebuffer-onabort
Parameters
event?
import("./EventTargetInterface").Event | import("./EventTargetInterface").TrackEvent | import("./EventTargetInterface").MediaEncryptedEvent
Methods
appendBuffer()
appendBuffer(data:Append the media segment. For additional information, see https://www.w3.org/TR/media-source-2/#dom-sourcebuffer-appendbuffer.ArrayBuffer | Uint8Array<ArrayBufferLike>):void
Parameters
data
ArrayBuffer | Uint8Array<ArrayBufferLike>
abort()
abort(): void
Abort the source buffer operations.
For additional information, see
https://www.w3.org/TR/media-source-2/#dom-sourcebuffer-abort.
changeType()
changeType(type:Change the mime type of the source buffer. https://www.w3.org/TR/media-source-2/#dom-sourcebuffer-changetypestring):void
Parameters
type
string
remove()
remove(start:Remove the media samples from the internal track buffer queue between start and end timestamp positions. For additional information, see https://www.w3.org/TR/media-source-2/#dom-sourcebuffer-remove.number, end:number):void
Parameters
start
number
end
number
