@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.
|
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.
|
EventHandler |
onabort |
EventHandler |
onerror |
EventHandler |
onupdate |
EventHandler |
onupdateend |
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 |
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.
|
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, removeEventListenerpublic double appendWindowEnd
public double appendWindowStart
@Nonnull @AppendMode public java.lang.String mode
@Nullable public EventHandler onabort
@Nullable public EventHandler onerror
@Nullable public EventHandler onupdate
@Nullable public EventHandler onupdateend
@Nullable public 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)