SourceBuffer extension type

The SourceBuffer interface represents a chunk of media to be passed into an HTMLMediaElement and played, via a MediaSource object. This can be made up of one or several media segments.

on
Implemented types
Implementers

Properties

appendWindowEnd num
getter/setter pair
appendWindowStart num
getter/setter pair
audioTracks AudioTrackList
no setter
buffered TimeRanges
no setter
hashCode int
The hash code for this object.
no setterinherited
mode AppendMode
getter/setter pair
onabort EventHandler?
getter/setter pair
onerror EventHandler?
getter/setter pair
onupdate EventHandler?
getter/setter pair
onupdateend EventHandler?
getter/setter pair
onupdatestart EventHandler?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textTracks TextTrackList
no setter
timestampOffset num
getter/setter pair
updating bool
no setter
videoTracks VideoTrackList
no setter

Methods

abort() → void
The abort() method of the SourceBuffer interface aborts the current segment and resets the segment parser.
addEventListener(String type, EventListener? callback, [JSAny options]) → void
The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
inherited
appendBuffer(BufferSource data) → void
The appendBuffer() method of the SourceBuffer interface appends media segment data from an ArrayBuffer, a TypedArray or a DataView object to the SourceBuffer.
changeType(String type) → void
The changeType() method of the SourceBuffer interface sets the MIME type that future calls to SourceBuffer.appendBuffer should expect the new media data to conform to. This makes it possible to change codecs or container type mid-stream.
dispatchEvent(Event event) bool
The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order. The normal event processing rules (including the capturing and optional bubbling phase) also apply to events dispatched manually with dispatchEvent().
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(num start, num end) → void
The remove() method of the SourceBuffer interface removes media segments within a specific time range from the SourceBuffer. This method can only be called when SourceBuffer.updating equals false. If SourceBuffer.updating is not equal to false, call SourceBuffer.abort.
removeEventListener(String type, EventListener? callback, [JSAny options]) → void
The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener from the target. The event listener to be removed is identified using a combination of the event type, the event listener function itself, and various optional options that may affect the matching process; see Matching event listeners for removal.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited