The SourceBuffer interface represents a chunk of media to be
into an html.HTMLMediaElement
and played, via a media.MediaSource
This can be made up of one or several media segments.
The SourceBuffer interface represents a chunk of media to be into an `html.HTMLMediaElement` and played, via a `media.MediaSource` This can be made up of one or several media segments.
(abort this)
Method.
The abort() method of the web.SourceBuffer
interface aborts
current segment and resets the segment parser.
sourceBuffer.abort();
See also: https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/abort
Method. The abort() method of the `web.SourceBuffer` interface aborts current segment and resets the segment parser. `sourceBuffer.abort();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/abort`
(append-buffer this source)
Method.
The appendBuffer() method of the web.SourceBuffer
interface
media segment data from an web.ArrayBuffer
or ArrayBufferView
to the SourceBuffer.
sourceBuffer.appendBuffer(source);
See also: https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendBuffer
Method. The appendBuffer() method of the `web.SourceBuffer` interface media segment data from an `web.ArrayBuffer` or ArrayBufferView to the SourceBuffer. `sourceBuffer.appendBuffer(source);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendBuffer`
(append-buffer-async this source)
Method.
The web.SourceBuffer
method appendBufferAsync() begins the
of asynchronously appending media segment data from an web.ArrayBuffer
web.ArrayBufferView
object to the SourceBuffer.
appendPromise = sourceBuffer.appendBufferAsync(source);
See also: https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendBufferAsync
Method. The `web.SourceBuffer` method appendBufferAsync() begins the of asynchronously appending media segment data from an `web.ArrayBuffer` `web.ArrayBufferView` object to the SourceBuffer. `appendPromise = sourceBuffer.appendBufferAsync(source);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendBufferAsync`
(append-stream this stream max-size)
Method.
The appendStream() method of the web.SourceBuffer
interface
media segment data from a ReadableStream object to the SourceBuffer.
sourceBuffer.appendStream(stream, maxSize);
See also: https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendStream
Method. The appendStream() method of the `web.SourceBuffer` interface media segment data from a ReadableStream object to the SourceBuffer. `sourceBuffer.appendStream(stream, maxSize);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendStream`
(append-window-end this)
Property.
The appendWindowEnd property of the web.SourceBuffer
interface
the timestamp for the end of the append window, a timestamp range
can be used to filter what media data is appended to the SourceBuffer.
media frames with timestamps wthin this range will be appended,
those outside the range will be filtered out.
`var myAppendWindowEnd = sourceBuffer.appendWindowEnd;
sourceBuffer.appendWindowEnd = 120.0;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendWindowEnd
Property. The appendWindowEnd property of the `web.SourceBuffer` interface the timestamp for the end of the append window, a timestamp range can be used to filter what media data is appended to the SourceBuffer. media frames with timestamps wthin this range will be appended, those outside the range will be filtered out. `var myAppendWindowEnd = sourceBuffer.appendWindowEnd; sourceBuffer.appendWindowEnd = 120.0;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendWindowEnd`
(append-window-start this)
Property.
The appendWindowStart property of the web.SourceBuffer
interface
the timestamp for the start of the append window, a timestamp
that can be used to filter what media data is appended to the
Coded media frames with timestamps wthin this range will be appended,
those outside the range will be filtered out.
`var myAppendWindowStart = sourceBuffer.appendWindowStart;
sourceBuffer.appendWindowStart = 2.0;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendWindowStart
Property. The appendWindowStart property of the `web.SourceBuffer` interface the timestamp for the start of the append window, a timestamp that can be used to filter what media data is appended to the Coded media frames with timestamps wthin this range will be appended, those outside the range will be filtered out. `var myAppendWindowStart = sourceBuffer.appendWindowStart; sourceBuffer.appendWindowStart = 2.0;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendWindowStart`
(audio-tracks this)
Property.
The audioTracks read-only property of the web.SourceBuffer
returns a list of the audio tracks currently contained inside
SourceBuffer.
var myAudioTracks = sourceBuffer.audioTracks;
See also: https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/audioTracks
Property. The audioTracks read-only property of the `web.SourceBuffer` returns a list of the audio tracks currently contained inside SourceBuffer. `var myAudioTracks = sourceBuffer.audioTracks;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/audioTracks`
(buffered this)
Property.
The buffered read-only property of the web.SourceBuffer
interface
the time ranges that are currently buffered in the SourceBuffer
a normalized web.TimeRanges
object.
var myBufferedRange = sourceBuffer.buffered;
See also: https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/buffered
Property. The buffered read-only property of the `web.SourceBuffer` interface the time ranges that are currently buffered in the SourceBuffer a normalized `web.TimeRanges` object. `var myBufferedRange = sourceBuffer.buffered;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/buffered`
(change-type this type)
Method.
The web.SourceBuffer
method changeType() sets the MIME type
future calls to web.appendBuffer()
should expect the new media
to conform to.
sourceBuffer.changeType(type);
See also: https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/changeType
Method. The `web.SourceBuffer` method changeType() sets the MIME type future calls to `web.appendBuffer()` should expect the new media to conform to. `sourceBuffer.changeType(type);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/changeType`
(mode this)
Property.
The mode property of the web.SourceBuffer
interface controls
media segments can be appended to the SourceBuffer in any order,
in a strict sequence.
`var myMode = sourceBuffer.mode;
sourceBuffer.mode = 'sequence';`
See also: https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/mode
Property. The mode property of the `web.SourceBuffer` interface controls media segments can be appended to the SourceBuffer in any order, in a strict sequence. `var myMode = sourceBuffer.mode; sourceBuffer.mode = 'sequence';` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/mode`
(remove this start end)
Method.
The remove() method of the web.SourceBuffer
interface removes
segments within a specific time range from the SourceBuffer.
method can only be called when web.SourceBuffer.updating
equals
If SourceBuffer.updating is not equal to false, call web.SourceBuffer.abort()
.
sourceBuffer.remove(start, end);
See also: https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/remove
Method. The remove() method of the `web.SourceBuffer` interface removes segments within a specific time range from the SourceBuffer. method can only be called when `web.SourceBuffer.updating` equals If SourceBuffer.updating is not equal to false, call `web.SourceBuffer.abort()`. `sourceBuffer.remove(start, end);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/remove`
(remove-async this start end)
Method.
The removeAsync() method of the web.SourceBuffer
interface
the process of asynchronously removing from the SourceBuffer
segments found within a specific time range.
removePromise = sourceBuffer.removeAsync(start, end);
See also: https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/removeAsync
Method. The removeAsync() method of the `web.SourceBuffer` interface the process of asynchronously removing from the SourceBuffer segments found within a specific time range. `removePromise = sourceBuffer.removeAsync(start, end);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/removeAsync`
(set-append-window-end! this val)
Property.
The appendWindowEnd property of the web.SourceBuffer
interface
the timestamp for the end of the append window, a timestamp range
can be used to filter what media data is appended to the SourceBuffer.
media frames with timestamps wthin this range will be appended,
those outside the range will be filtered out.
`var myAppendWindowEnd = sourceBuffer.appendWindowEnd;
sourceBuffer.appendWindowEnd = 120.0;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendWindowEnd
Property. The appendWindowEnd property of the `web.SourceBuffer` interface the timestamp for the end of the append window, a timestamp range can be used to filter what media data is appended to the SourceBuffer. media frames with timestamps wthin this range will be appended, those outside the range will be filtered out. `var myAppendWindowEnd = sourceBuffer.appendWindowEnd; sourceBuffer.appendWindowEnd = 120.0;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendWindowEnd`
(set-append-window-start! this val)
Property.
The appendWindowStart property of the web.SourceBuffer
interface
the timestamp for the start of the append window, a timestamp
that can be used to filter what media data is appended to the
Coded media frames with timestamps wthin this range will be appended,
those outside the range will be filtered out.
`var myAppendWindowStart = sourceBuffer.appendWindowStart;
sourceBuffer.appendWindowStart = 2.0;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendWindowStart
Property. The appendWindowStart property of the `web.SourceBuffer` interface the timestamp for the start of the append window, a timestamp that can be used to filter what media data is appended to the Coded media frames with timestamps wthin this range will be appended, those outside the range will be filtered out. `var myAppendWindowStart = sourceBuffer.appendWindowStart; sourceBuffer.appendWindowStart = 2.0;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendWindowStart`
(set-audio-tracks! this val)
Property.
The audioTracks read-only property of the web.SourceBuffer
returns a list of the audio tracks currently contained inside
SourceBuffer.
var myAudioTracks = sourceBuffer.audioTracks;
See also: https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/audioTracks
Property. The audioTracks read-only property of the `web.SourceBuffer` returns a list of the audio tracks currently contained inside SourceBuffer. `var myAudioTracks = sourceBuffer.audioTracks;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/audioTracks`
(set-buffered! this val)
Property.
The buffered read-only property of the web.SourceBuffer
interface
the time ranges that are currently buffered in the SourceBuffer
a normalized web.TimeRanges
object.
var myBufferedRange = sourceBuffer.buffered;
See also: https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/buffered
Property. The buffered read-only property of the `web.SourceBuffer` interface the time ranges that are currently buffered in the SourceBuffer a normalized `web.TimeRanges` object. `var myBufferedRange = sourceBuffer.buffered;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/buffered`
(set-mode! this val)
Property.
The mode property of the web.SourceBuffer
interface controls
media segments can be appended to the SourceBuffer in any order,
in a strict sequence.
`var myMode = sourceBuffer.mode;
sourceBuffer.mode = 'sequence';`
See also: https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/mode
Property. The mode property of the `web.SourceBuffer` interface controls media segments can be appended to the SourceBuffer in any order, in a strict sequence. `var myMode = sourceBuffer.mode; sourceBuffer.mode = 'sequence';` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/mode`
(set-text-tracks! this val)
Property.
The textTracks read-only property of the web.SourceBuffer
interface
a list of the text tracks currently contained inside the SourceBuffer.
var myTextTracks = sourceBuffer.textTracks;
See also: https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/textTracks
Property. The textTracks read-only property of the `web.SourceBuffer` interface a list of the text tracks currently contained inside the SourceBuffer. `var myTextTracks = sourceBuffer.textTracks;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/textTracks`
(set-timestamp-offset! this val)
Property.
The timestampOffset property of the web.SourceBuffer
interface
the offset applied to timestamps inside media segments that are
to the SourceBuffer.
`var myOffset = sourceBuffer.timestampOffset;
sourceBuffer.timestampOffset = 2.5;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/timestampOffset
Property. The timestampOffset property of the `web.SourceBuffer` interface the offset applied to timestamps inside media segments that are to the SourceBuffer. `var myOffset = sourceBuffer.timestampOffset; sourceBuffer.timestampOffset = 2.5;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/timestampOffset`
(set-track-defaults! this val)
Property.
The trackDefaults property of the web.SourceBuffer
interface
the default values to use if kind, label, and/or language information
not available in the initialization segment of the media to be
to the SourceBuffer.
`var myTrackDefaults = sourceBuffer.trackDefaults;
sourceBuffer.trackDefaults = myTrackDefaultList;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/trackDefaults
Property. The trackDefaults property of the `web.SourceBuffer` interface the default values to use if kind, label, and/or language information not available in the initialization segment of the media to be to the SourceBuffer. `var myTrackDefaults = sourceBuffer.trackDefaults; sourceBuffer.trackDefaults = myTrackDefaultList;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/trackDefaults`
(set-updating! this val)
Property.
The updating read-only property of the web.SourceBuffer
interface
whether the SourceBuffer is currently being updated — i.e. whether
web.SourceBuffer.appendBuffer()
, web.SourceBuffer.appendStream()
,
web.SourceBuffer.remove()
operation is currently in progress.
var isUpdating = sourceBuffer.updating;
See also: https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/updating
Property. The updating read-only property of the `web.SourceBuffer` interface whether the SourceBuffer is currently being updated — i.e. whether `web.SourceBuffer.appendBuffer()`, `web.SourceBuffer.appendStream()`, `web.SourceBuffer.remove()` operation is currently in progress. `var isUpdating = sourceBuffer.updating;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/updating`
(set-video-tracks! this val)
Property.
The videoTracks read-only property of the web.SourceBuffer
returns a list of the video tracks currently contained inside
SourceBuffer.
var myVideoTracks = sourceBuffer.videoTracks;
See also: https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/videoTracks
Property. The videoTracks read-only property of the `web.SourceBuffer` returns a list of the video tracks currently contained inside SourceBuffer. `var myVideoTracks = sourceBuffer.videoTracks;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/videoTracks`
(text-tracks this)
Property.
The textTracks read-only property of the web.SourceBuffer
interface
a list of the text tracks currently contained inside the SourceBuffer.
var myTextTracks = sourceBuffer.textTracks;
See also: https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/textTracks
Property. The textTracks read-only property of the `web.SourceBuffer` interface a list of the text tracks currently contained inside the SourceBuffer. `var myTextTracks = sourceBuffer.textTracks;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/textTracks`
(timestamp-offset this)
Property.
The timestampOffset property of the web.SourceBuffer
interface
the offset applied to timestamps inside media segments that are
to the SourceBuffer.
`var myOffset = sourceBuffer.timestampOffset;
sourceBuffer.timestampOffset = 2.5;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/timestampOffset
Property. The timestampOffset property of the `web.SourceBuffer` interface the offset applied to timestamps inside media segments that are to the SourceBuffer. `var myOffset = sourceBuffer.timestampOffset; sourceBuffer.timestampOffset = 2.5;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/timestampOffset`
(track-defaults this)
Property.
The trackDefaults property of the web.SourceBuffer
interface
the default values to use if kind, label, and/or language information
not available in the initialization segment of the media to be
to the SourceBuffer.
`var myTrackDefaults = sourceBuffer.trackDefaults;
sourceBuffer.trackDefaults = myTrackDefaultList;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/trackDefaults
Property. The trackDefaults property of the `web.SourceBuffer` interface the default values to use if kind, label, and/or language information not available in the initialization segment of the media to be to the SourceBuffer. `var myTrackDefaults = sourceBuffer.trackDefaults; sourceBuffer.trackDefaults = myTrackDefaultList;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/trackDefaults`
(updating this)
Property.
The updating read-only property of the web.SourceBuffer
interface
whether the SourceBuffer is currently being updated — i.e. whether
web.SourceBuffer.appendBuffer()
, web.SourceBuffer.appendStream()
,
web.SourceBuffer.remove()
operation is currently in progress.
var isUpdating = sourceBuffer.updating;
See also: https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/updating
Property. The updating read-only property of the `web.SourceBuffer` interface whether the SourceBuffer is currently being updated — i.e. whether `web.SourceBuffer.appendBuffer()`, `web.SourceBuffer.appendStream()`, `web.SourceBuffer.remove()` operation is currently in progress. `var isUpdating = sourceBuffer.updating;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/updating`
(video-tracks this)
Property.
The videoTracks read-only property of the web.SourceBuffer
returns a list of the video tracks currently contained inside
SourceBuffer.
var myVideoTracks = sourceBuffer.videoTracks;
See also: https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/videoTracks
Property. The videoTracks read-only property of the `web.SourceBuffer` returns a list of the video tracks currently contained inside SourceBuffer. `var myVideoTracks = sourceBuffer.videoTracks;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/videoTracks`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close