@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="SourceBuffer")
public class SourceBuffer
extends EventTarget
| Modifier and Type | Field and Description |
|---|---|
double |
appendWindowEnd
The appendWindowEnd property 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 the SourceBuffer.
|
double |
appendWindowStart
The appendWindowStart property 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 the SourceBuffer.
|
@JsNonNull java.lang.String |
mode
The mode property of the SourceBuffer interface controls whether media segments can be appended to the SourceBuffer in any order, or in a strict sequence.
|
@JsNullable EventHandler |
onabort |
@JsNullable EventHandler |
onerror |
@JsNullable EventHandler |
onupdate |
@JsNullable EventHandler |
onupdateend |
@JsNullable EventHandler |
onupdatestart |
double |
timestampOffset
The timestampOffset property of the SourceBuffer interface controls the offset applied to timestamps inside media segments that are appended to the SourceBuffer.
|
| Modifier | Constructor and Description |
|---|---|
protected |
SourceBuffer() |
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
The abort() method of the SourceBuffer interface aborts the current segment and resets the segment parser.
|
void |
addAbortListener(EventListener callback) |
void |
addAbortListener(EventListener callback,
AddEventListenerOptions options) |
void |
addAbortListener(EventListener callback,
boolean useCapture) |
void |
addErrorListener(EventListener callback) |
void |
addErrorListener(EventListener callback,
AddEventListenerOptions options) |
void |
addErrorListener(EventListener callback,
boolean useCapture) |
void |
addUpdateendListener(EventListener callback) |
void |
addUpdateendListener(EventListener callback,
AddEventListenerOptions options) |
void |
addUpdateendListener(EventListener callback,
boolean useCapture) |
void |
addUpdateListener(EventListener callback) |
void |
addUpdateListener(EventListener callback,
AddEventListenerOptions options) |
void |
addUpdateListener(EventListener callback,
boolean useCapture) |
void |
addUpdatestartListener(EventListener callback) |
void |
addUpdatestartListener(EventListener callback,
AddEventListenerOptions options) |
void |
addUpdatestartListener(EventListener callback,
boolean useCapture) |
void |
appendBuffer(BufferSource data)
The appendBuffer() method of the SourceBuffer interface appends media segment data from an ArrayBuffer or ArrayBufferView object to the SourceBuffer.
|
AudioTrackList |
audioTracks()
The audioTracks read-only property of the SourceBuffer interface returns a list of the audio tracks currently contained inside the SourceBuffer.
|
TimeRanges |
buffered()
The buffered read-only property of the SourceBuffer interface returns the time ranges that are currently buffered in the SourceBuffer as a normalized TimeRanges object.
|
void |
remove(double start,
double end)
The remove() method of the SourceBuffer interface removes media segments within a specific time range from the SourceBuffer.
|
void |
removeAbortListener(EventListener callback) |
void |
removeAbortListener(EventListener callback,
boolean useCapture) |
void |
removeAbortListener(EventListener callback,
EventListenerOptions options) |
void |
removeErrorListener(EventListener callback) |
void |
removeErrorListener(EventListener callback,
boolean useCapture) |
void |
removeErrorListener(EventListener callback,
EventListenerOptions options) |
void |
removeUpdateendListener(EventListener callback) |
void |
removeUpdateendListener(EventListener callback,
boolean useCapture) |
void |
removeUpdateendListener(EventListener callback,
EventListenerOptions options) |
void |
removeUpdateListener(EventListener callback) |
void |
removeUpdateListener(EventListener callback,
boolean useCapture) |
void |
removeUpdateListener(EventListener callback,
EventListenerOptions options) |
void |
removeUpdatestartListener(EventListener callback) |
void |
removeUpdatestartListener(EventListener callback,
boolean useCapture) |
void |
removeUpdatestartListener(EventListener callback,
EventListenerOptions options) |
TextTrackList |
textTracks()
The textTracks read-only property of the SourceBuffer interface returns a list of the text tracks currently contained inside the SourceBuffer.
|
boolean |
updating()
The updating read-only property of the SourceBuffer interface indicates whether the SourceBuffer is currently being updated — i.e.
|
VideoTrackList |
videoTracks()
The videoTracks read-only property of the SourceBuffer interface returns a list of the video tracks currently contained inside the SourceBuffer.
|
addEventListener, addEventListener, addEventListener, dispatchEvent, removeEventListener, removeEventListener, removeEventListenerassign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toString_, valueOf_, valuespublic double appendWindowEnd
public double appendWindowStart
@AppendMode public @JsNonNull java.lang.String mode
public @JsNullable EventHandler onabort
public @JsNullable EventHandler onerror
public @JsNullable EventHandler onupdate
public @JsNullable EventHandler onupdateend
public @JsNullable EventHandler onupdatestart
public double timestampOffset
@JsProperty(name="audioTracks") @Nonnull public AudioTrackList audioTracks()
@JsProperty(name="buffered") @Nonnull public TimeRanges buffered()
@JsProperty(name="textTracks") @Nonnull public TextTrackList textTracks()
@JsProperty(name="updating") public boolean updating()
@JsProperty(name="videoTracks") @Nonnull public VideoTrackList videoTracks()
public void abort()
public void appendBuffer(@Nonnull
BufferSource data)
public void remove(double start,
double end)
@JsOverlay
public final void addUpdateListener(@Nonnull
EventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addUpdateListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void addUpdateListener(@Nonnull
EventListener callback)
@JsOverlay
public final void removeUpdateListener(@Nonnull
EventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeUpdateListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void removeUpdateListener(@Nonnull
EventListener callback)
@JsOverlay
public final void addUpdatestartListener(@Nonnull
EventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addUpdatestartListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void addUpdatestartListener(@Nonnull
EventListener callback)
@JsOverlay
public final void removeUpdatestartListener(@Nonnull
EventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeUpdatestartListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void removeUpdatestartListener(@Nonnull
EventListener callback)
@JsOverlay
public final void addUpdateendListener(@Nonnull
EventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addUpdateendListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void addUpdateendListener(@Nonnull
EventListener callback)
@JsOverlay
public final void removeUpdateendListener(@Nonnull
EventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeUpdateendListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void removeUpdateendListener(@Nonnull
EventListener callback)
@JsOverlay
public final void addErrorListener(@Nonnull
EventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addErrorListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void addErrorListener(@Nonnull
EventListener callback)
@JsOverlay
public final void removeErrorListener(@Nonnull
EventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeErrorListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void removeErrorListener(@Nonnull
EventListener callback)
@JsOverlay
public final void addAbortListener(@Nonnull
EventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addAbortListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void addAbortListener(@Nonnull
EventListener callback)
@JsOverlay
public final void removeAbortListener(@Nonnull
EventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeAbortListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void removeAbortListener(@Nonnull
EventListener callback)