SourceBuffer class

The 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.

EventTarget

SourceBuffer

Implemented types
Available extensions
Annotations
  • @experimental
  • @JS()
  • @staticInterop

Constructors

SourceBuffer()
factory

Properties

appendWindowEnd ↔ dynamic

Available on SourceBuffer, provided by the PropsSourceBuffer extension

getter/setter pair
appendWindowStart double

Available on SourceBuffer, provided by the PropsSourceBuffer extension

getter/setter pair
audioTracks AudioTrackList

Available on SourceBuffer, provided by the PropsSourceBuffer extension

no setter
buffered TimeRanges

Available on SourceBuffer, provided by the PropsSourceBuffer extension

no setter
hashCode int
The hash code for this object.
no setterinherited
mode AppendMode

Available on SourceBuffer, provided by the PropsSourceBuffer extension

getter/setter pair
onabort EventHandlerNonNull<Event>?

Available on SourceBuffer, provided by the PropsSourceBuffer extension

getter/setter pair
onerror EventHandlerNonNull<Event>?

Available on SourceBuffer, provided by the PropsSourceBuffer extension

getter/setter pair
onupdate EventHandlerNonNull<Event>?

Available on SourceBuffer, provided by the PropsSourceBuffer extension

getter/setter pair
onupdateend EventHandlerNonNull<Event>?

Available on SourceBuffer, provided by the PropsSourceBuffer extension

getter/setter pair
onupdatestart EventHandlerNonNull<Event>?

Available on SourceBuffer, provided by the PropsSourceBuffer extension

getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textTracks TextTrackList

Available on SourceBuffer, provided by the PropsSourceBuffer extension

no setter
timestampOffset double

Available on SourceBuffer, provided by the PropsSourceBuffer extension

getter/setter pair
updating bool

Available on SourceBuffer, provided by the PropsSourceBuffer extension

no setter
videoTracks VideoTrackList

Available on SourceBuffer, provided by the PropsSourceBuffer extension

no setter

Methods

abort() → void

Available on SourceBuffer, provided by the PropsSourceBuffer extension

addEventListener(String type, EventListener? callback, [dynamic options]) → void

Available on EventTarget, provided by the PropsEventTarget extension

appendBuffer(dynamic data) → void

Available on SourceBuffer, provided by the PropsSourceBuffer extension

changeType(String type) → void

Available on SourceBuffer, provided by the PropsSourceBuffer extension

dispatchEvent(Event event) bool

Available on EventTarget, provided by the PropsEventTarget extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(double start, dynamic end) → void

Available on SourceBuffer, provided by the PropsSourceBuffer extension

removeEventListener(String type, EventListener? callback, [dynamic options]) → void

Available on EventTarget, provided by the PropsEventTarget extension

toString() String
A string representation of this object.
inherited

Operators

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