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.
API documentation sourced from MDN Web Docs.
- on
- Implemented types
- Available extensions
Properties
- appendWindowEnd ↔ double
- 
  The appendWindowEndproperty of the SourceBuffer interface controls the timestamp for the end of the append window, a timestamp range that can be used to filter what media data is appended to theSourceBuffer. Coded media frames with timestamps within this range will be appended, whereas those outside the range will be filtered out.getter/setter pair
- appendWindowStart ↔ double
- 
  The appendWindowStartproperty of the SourceBuffer interface controls the timestamp for the start of the append window, a timestamp range that can be used to filter what media data is appended to theSourceBuffer. Coded media frames with timestamps within this range will be appended, whereas those outside the range will be filtered out.getter/setter pair
- audioTracks → AudioTrackList
- 
  The audioTracksread-only property of the SourceBuffer interface returns a list of the audio tracks currently contained inside theSourceBuffer.no setter
- buffered → TimeRanges
- 
  The bufferedread-only property of the SourceBuffer interface returns the time ranges that are currently buffered in theSourceBufferas a normalized TimeRanges object.no setter
- hashCode → int
- 
  The hash code for this object.
  no setterinherited
- isDefinedAndNotNull → bool
- 
      Available on JSAny?, provided by the NullableUndefineableJSAnyExtension extension no setter
- isNull → bool
- 
      Available on JSAny?, provided by the NullableUndefineableJSAnyExtension extension Whether this value corresponds to JavaScriptnull.no setter
- isTruthy → JSBoolean
- 
      Available on JSAny?, provided by the JSAnyOperatorExtension extension The result of!!in JavaScript.thisno setter
- isUndefined → bool
- 
      Available on JSAny?, provided by the NullableUndefineableJSAnyExtension extension Whether this value corresponds to JavaScriptundefined.no setter
- isUndefinedOrNull → bool
- 
      Available on JSAny?, provided by the NullableUndefineableJSAnyExtension extension no setter
- mode ↔ AppendMode
- 
  The modeproperty of the SourceBuffer interface controls whether media segments can be appended to theSourceBufferin any order, or in a strict sequence.getter/setter pair
- not → JSBoolean
- 
      Available on JSAny?, provided by the JSAnyOperatorExtension extension The result of!in JavaScript.thisno setter
- 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
- timestampOffset ↔ double
- 
  The timestampOffsetproperty of the SourceBuffer interface controls the offset applied to timestamps inside media segments that are appended to theSourceBuffer.getter/setter pair
- updating → bool
- 
  The updatingread-only property of the SourceBuffer interface indicates whether theSourceBufferis currently being updated — i.e. whether an SourceBuffer.appendBuffer or SourceBuffer.remove operation is currently in progress.no setter
- videoTracks → VideoTrackList
- 
  The videoTracksread-only property of the SourceBuffer interface returns a list of the video tracks currently contained inside theSourceBuffer.no setter
Methods
- 
  abort() → void 
- 
  The abort()method of the SourceBuffer interface aborts the current segment and resets the segment parser.
- 
  add(JSAny? any) → JSAny 
- 
      Available on JSAny?, provided by the JSAnyOperatorExtension extension The result ofthis+any
- 
  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
- 
  and(JSAny? any) → JSAny? 
- 
      Available on JSAny?, provided by the JSAnyOperatorExtension extension The result ofthis&&any
- 
  appendBuffer(BufferSource data) → void 
- 
  The appendBuffer()method of the SourceBuffer interface appends media segment data from anArrayBuffer, aTypedArrayor aDataViewobject to theSourceBuffer.
- 
  callMethod<R extends JSAny?> (JSAny method, [JSAny? arg1, JSAny? arg2, JSAny? arg3, JSAny? arg4]) → R 
- 
      Available on JSObject, provided by the JSObjectUnsafeUtilExtension extension Callsmethodon this JSObject with up to four arguments.
- 
  callMethodVarArgs<R extends JSAny?> (JSAny method, [List< JSAny?> ? arguments]) → R
- 
      Available on JSObject, provided by the JSObjectUnsafeUtilExtension extension Callsmethodon this JSObject with a variable number ofarguments.
- 
  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.
- 
  dartify() → Object? 
- 
      Available on JSAny?, provided by the JSAnyUtilityExtension extension Converts a JavaScript JSON-like value to the Dart equivalent if possible.
- 
  delete(JSAny property) → JSBoolean 
- 
      Available on JSObject, provided by the JSObjectUnsafeUtilExtension extension Deletes the property with keypropertyfrom this JSObject.
- 
  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 withdispatchEvent().inherited
- 
  divide(JSAny? any) → JSAny 
- 
      Available on JSAny?, provided by the JSAnyOperatorExtension extension The result ofthis/any
- 
  equals(JSAny? any) → JSBoolean 
- 
      Available on JSAny?, provided by the JSAnyOperatorExtension extension The result ofthis==any
- 
  exponentiate(JSAny? any) → JSAny 
- 
      Available on JSAny?, provided by the JSAnyOperatorExtension extension The result ofthis**any
- 
  getProperty<R extends JSAny?> (JSAny property) → R 
- 
      Available on JSObject, provided by the JSObjectUnsafeUtilExtension extension The value of the property keypropertyof this JSObject.
- 
  greaterThan(JSAny? any) → JSBoolean 
- 
      Available on JSAny?, provided by the JSAnyOperatorExtension extension The result ofthis>any
- 
  greaterThanOrEqualTo(JSAny? any) → JSBoolean 
- 
      Available on JSAny?, provided by the JSAnyOperatorExtension extension The result ofthis>=any
- 
  has(String property) → bool 
- 
      Available on JSObject, provided by the JSObjectUnsafeUtilExtension extension Shorthand helper for hasProperty to check whether this JSObject contains the property keyproperty, but takes and returns a Dart value.
- 
  hasProperty(JSAny property) → JSBoolean 
- 
      Available on JSObject, provided by the JSObjectUnsafeUtilExtension extension Whether or not this JSObject contains the property keyproperty.
- 
  instanceof(JSFunction constructor) → bool 
- 
      Available on JSAny?, provided by the JSAnyUtilityExtension extension Whether thisJSAny?is aninstanceofconstructor.
- 
  instanceOfString(String constructorName) → bool 
- 
      Available on JSAny?, provided by the JSAnyUtilityExtension extension Whether thisJSAny?is aninstanceofthe constructor that is defined byconstructorName, which is looked up in the globalContext.
- 
  isA<T extends JSAny?> () → bool 
- 
      Available on JSAny?, provided by the JSAnyUtilityExtension extension Whether thisJSAny?is an instance of the JavaScript type that is declared byT.
- 
  lessThan(JSAny? any) → JSBoolean 
- 
      Available on JSAny?, provided by the JSAnyOperatorExtension extension The result ofthis<any
- 
  lessThanOrEqualTo(JSAny? any) → JSBoolean 
- 
      Available on JSAny?, provided by the JSAnyOperatorExtension extension The result ofthis<=any
- 
  modulo(JSAny? any) → JSAny 
- 
      Available on JSAny?, provided by the JSAnyOperatorExtension extension The result ofthis%any
- 
  multiply(JSAny? any) → JSAny 
- 
      Available on JSAny?, provided by the JSAnyOperatorExtension extension The result ofthis*any
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  notEquals(JSAny? any) → JSBoolean 
- 
      Available on JSAny?, provided by the JSAnyOperatorExtension extension The result ofthis!=any
- 
  or(JSAny? any) → JSAny? 
- 
      Available on JSAny?, provided by the JSAnyOperatorExtension extension The result ofthis||any
- 
  remove(num start, num end) → void 
- 
  The remove()method of the SourceBuffer interface removes media segments within a specific time range from theSourceBuffer. This method can only be called when SourceBuffer.updating equalsfalse. IfSourceBuffer.updatingis not equal tofalse, 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
- 
  setProperty(JSAny property, JSAny? value) → void 
- 
      Available on JSObject, provided by the JSObjectUnsafeUtilExtension extension Write thevalueof property keypropertyof this JSObject.
- 
  strictEquals(JSAny? any) → JSBoolean 
- 
      Available on JSAny?, provided by the JSAnyOperatorExtension extension The result ofthis===any
- 
  strictNotEquals(JSAny? any) → JSBoolean 
- 
      Available on JSAny?, provided by the JSAnyOperatorExtension extension The result ofthis!==any
- 
  subtract(JSAny? any) → JSAny 
- 
      Available on JSAny?, provided by the JSAnyOperatorExtension extension The result ofthis-any
- 
  toString() → String 
- 
  A string representation of this object.
  inherited
- 
  typeofEquals(String typeString) → bool 
- 
      Available on JSAny?, provided by the JSAnyUtilityExtension extension Whether the result oftypeofon thisJSAny?istypeString.
- 
  unsignedRightShift(JSAny? any) → JSNumber 
- 
      Available on JSAny?, provided by the JSAnyOperatorExtension extension The result ofthis>>>any
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited
- 
  operator [](String property) → JSAny? 
- 
      Available on JSObject, provided by the JSObjectUnsafeUtilExtension extension Shorthand helper for getProperty to get the value of the property keypropertyof this JSObject, but takes a Dart value.
- 
  operator []=(String property, JSAny? value) → void 
- 
      Available on JSObject, provided by the JSObjectUnsafeUtilExtension extension Shorthand helper for setProperty to write thevalueof the property keypropertyof this JSObject, but takes a Dart value.