The SourceBuffer interface represents a chunk of media to be
into an web.media.HTMLMediaElement
and played, via a web.audio.MediaSource
This can be made up of one or several media segments.
The SourceBuffer interface represents a chunk of media to be into an `web.media.HTMLMediaElement` and played, via a `web.audio.MediaSource` This can be made up of one or several media segments.
(abort this)
Method.
[Draft] [Experimental]
The abort() method of the web.audio.SourceBuffer
interface
the current segment and resets the segment parser.
sourceBuffer.abort();
See also: https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/abort
Method. [Draft] [Experimental] The abort() method of the `web.audio.SourceBuffer` interface the 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.
[Draft] [Experimental]
The appendBuffer() method of the web.audio.SourceBuffer
interface
media segment data from an js.ArrayBuffer
or ArrayBufferView
to the SourceBuffer.
sourceBuffer.appendBuffer(source);
See also: https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendBuffer
Method. [Draft] [Experimental] The appendBuffer() method of the `web.audio.SourceBuffer` interface media segment data from an `js.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.
[Non Standard] [Experimental]
The web.audio.SourceBuffer
method appendBufferAsync() begins
process of asynchronously appending media segment data from an
or web.typed.ArrayBufferView
object to the SourceBuffer.
appendPromise = sourceBuffer.appendBufferAsync(source);
See also: https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendBufferAsync
Method. [Non Standard] [Experimental] The `web.audio.SourceBuffer` method appendBufferAsync() begins process of asynchronously appending media segment data from an or `web.typed.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.
[Draft] [Experimental]
The appendStream() method of the web.audio.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. [Draft] [Experimental] The appendStream() method of the `web.audio.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.
[Draft] [Experimental]
The appendWindowEnd property of the web.audio.SourceBuffer
controls the timestamp for the end 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 myAppendWindowEnd = sourceBuffer.appendWindowEnd;
sourceBuffer.appendWindowEnd = 120.0;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendWindowEnd
Property. [Draft] [Experimental] The appendWindowEnd property of the `web.audio.SourceBuffer` controls the timestamp for the end 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 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.
[Draft] [Experimental]
The appendWindowStart property of the web.audio.SourceBuffer
controls the timestamp for the start of the append window, a
range that can be used to filter what media data is appended
the SourceBuffer. Coded media frames with timestamps wthin this
will be appended, whereas those outside the range will be filtered
`var myAppendWindowStart = sourceBuffer.appendWindowStart;
sourceBuffer.appendWindowStart = 2.0;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendWindowStart
Property. [Draft] [Experimental] The appendWindowStart property of the `web.audio.SourceBuffer` controls the timestamp for the start of the append window, a range that can be used to filter what media data is appended the SourceBuffer. Coded media frames with timestamps wthin this will be appended, whereas those outside the range will be filtered `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.
[Read Only] [Draft] [Experimental]
The audioTracks read-only property of the web.audio.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. [Read Only] [Draft] [Experimental] The audioTracks read-only property of the `web.audio.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.
[Read Only] [Draft] [Experimental]
The buffered read-only property of the web.audio.SourceBuffer
returns the time ranges that are currently buffered in the SourceBuffer
a normalized web.media.TimeRanges
object.
var myBufferedRange = sourceBuffer.buffered;
See also: https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/buffered
Property. [Read Only] [Draft] [Experimental] The buffered read-only property of the `web.audio.SourceBuffer` returns the time ranges that are currently buffered in the SourceBuffer a normalized `web.media.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.audio.SourceBuffer
method changeType() sets the MIME
that future calls to 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.audio.SourceBuffer` method changeType() sets the MIME that future calls to `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.
[Experimental]
The mode property of the web.audio.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. [Experimental] The mode property of the `web.audio.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`
(onabort this)
Property.
Fired whenever SourceBuffer.appendBuffer() or SourceBuffer.appendStream() ended by a call to SourceBuffer.abort(). SourceBuffer.updating from true to false.
Property. Fired whenever SourceBuffer.appendBuffer() or SourceBuffer.appendStream() ended by a call to SourceBuffer.abort(). SourceBuffer.updating from true to false.
(onerror this)
Property.
Fired whenever an error occurs during SourceBuffer.appendBuffer() SourceBuffer.appendStream(). SourceBuffer.updating changes from to false.
Property. Fired whenever an error occurs during SourceBuffer.appendBuffer() SourceBuffer.appendStream(). SourceBuffer.updating changes from to false.
(onupdate this)
Property.
Fired whenever SourceBuffer.appendBuffer() method or the SourceBuffer.remove() SourceBuffer.updating changes from true to false. This event fired before onupdateend.
Property. Fired whenever SourceBuffer.appendBuffer() method or the SourceBuffer.remove() SourceBuffer.updating changes from true to false. This event fired before onupdateend.
(onupdateend this)
Property.
Fired whenever SourceBuffer.appendBuffer() method or the SourceBuffer.remove() ended. This event is fired after onupdate.
Property. Fired whenever SourceBuffer.appendBuffer() method or the SourceBuffer.remove() ended. This event is fired after onupdate.
(onupdatestart this)
Property.
Fired whenever the value of SourceBuffer.updating transitions false to true.
Property. Fired whenever the value of SourceBuffer.updating transitions false to true.
(remove this start end)
Method.
[Draft] [Experimental]
The remove() method of the web.audio.SourceBuffer
interface
media segments within a specific time range from the SourceBuffer.
method can only be called when SourceBuffer.updating
equals
If SourceBuffer.updating is not equal to false, call SourceBuffer.abort()
.
sourceBuffer.remove(start, end);
See also: https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/remove
Method. [Draft] [Experimental] The remove() method of the `web.audio.SourceBuffer` interface media segments within a specific time range from the SourceBuffer. method can only be called when `SourceBuffer.updating` equals If SourceBuffer.updating is not equal to false, call `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.
[Non Standard] [Experimental]
The removeAsync() method of the web.audio.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. [Non Standard] [Experimental] The removeAsync() method of the `web.audio.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.
[Draft] [Experimental]
The appendWindowEnd property of the web.audio.SourceBuffer
controls the timestamp for the end 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 myAppendWindowEnd = sourceBuffer.appendWindowEnd;
sourceBuffer.appendWindowEnd = 120.0;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendWindowEnd
Property. [Draft] [Experimental] The appendWindowEnd property of the `web.audio.SourceBuffer` controls the timestamp for the end 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 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.
[Draft] [Experimental]
The appendWindowStart property of the web.audio.SourceBuffer
controls the timestamp for the start of the append window, a
range that can be used to filter what media data is appended
the SourceBuffer. Coded media frames with timestamps wthin this
will be appended, whereas those outside the range will be filtered
`var myAppendWindowStart = sourceBuffer.appendWindowStart;
sourceBuffer.appendWindowStart = 2.0;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendWindowStart
Property. [Draft] [Experimental] The appendWindowStart property of the `web.audio.SourceBuffer` controls the timestamp for the start of the append window, a range that can be used to filter what media data is appended the SourceBuffer. Coded media frames with timestamps wthin this will be appended, whereas those outside the range will be filtered `var myAppendWindowStart = sourceBuffer.appendWindowStart; sourceBuffer.appendWindowStart = 2.0;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendWindowStart`
(set-mode! this val)
Property.
[Experimental]
The mode property of the web.audio.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. [Experimental] The mode property of the `web.audio.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-onabort! this val)
Property.
Fired whenever SourceBuffer.appendBuffer() or SourceBuffer.appendStream() ended by a call to SourceBuffer.abort(). SourceBuffer.updating from true to false.
Property. Fired whenever SourceBuffer.appendBuffer() or SourceBuffer.appendStream() ended by a call to SourceBuffer.abort(). SourceBuffer.updating from true to false.
(set-onerror! this val)
Property.
Fired whenever an error occurs during SourceBuffer.appendBuffer() SourceBuffer.appendStream(). SourceBuffer.updating changes from to false.
Property. Fired whenever an error occurs during SourceBuffer.appendBuffer() SourceBuffer.appendStream(). SourceBuffer.updating changes from to false.
(set-onupdate! this val)
Property.
Fired whenever SourceBuffer.appendBuffer() method or the SourceBuffer.remove() SourceBuffer.updating changes from true to false. This event fired before onupdateend.
Property. Fired whenever SourceBuffer.appendBuffer() method or the SourceBuffer.remove() SourceBuffer.updating changes from true to false. This event fired before onupdateend.
(set-onupdateend! this val)
Property.
Fired whenever SourceBuffer.appendBuffer() method or the SourceBuffer.remove() ended. This event is fired after onupdate.
Property. Fired whenever SourceBuffer.appendBuffer() method or the SourceBuffer.remove() ended. This event is fired after onupdate.
(set-onupdatestart! this val)
Property.
Fired whenever the value of SourceBuffer.updating transitions false to true.
Property. Fired whenever the value of SourceBuffer.updating transitions false to true.
(set-timestamp-offset! this val)
Property.
[Draft] [Experimental]
The timestampOffset property of the web.audio.SourceBuffer
controls the offset applied to timestamps inside media segments
are appended 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. [Draft] [Experimental] The timestampOffset property of the `web.audio.SourceBuffer` controls the offset applied to timestamps inside media segments are appended 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.
[Draft] [Experimental]
The trackDefaults property of the web.audio.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. [Draft] [Experimental] The trackDefaults property of the `web.audio.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`
(text-tracks this)
Property.
[Read Only] [Draft] [Experimental]
The textTracks read-only property of the web.audio.SourceBuffer
returns a list of the text tracks currently contained inside
SourceBuffer.
var myTextTracks = sourceBuffer.textTracks;
See also: https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/textTracks
Property. [Read Only] [Draft] [Experimental] The textTracks read-only property of the `web.audio.SourceBuffer` returns a list of the text tracks currently contained inside SourceBuffer. `var myTextTracks = sourceBuffer.textTracks;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/textTracks`
(timestamp-offset this)
Property.
[Draft] [Experimental]
The timestampOffset property of the web.audio.SourceBuffer
controls the offset applied to timestamps inside media segments
are appended 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. [Draft] [Experimental] The timestampOffset property of the `web.audio.SourceBuffer` controls the offset applied to timestamps inside media segments are appended 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.
[Draft] [Experimental]
The trackDefaults property of the web.audio.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. [Draft] [Experimental] The trackDefaults property of the `web.audio.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.
[Read Only] [Draft] [Experimental]
The updating read-only property of the web.audio.SourceBuffer
indicates whether the SourceBuffer is currently being updated
i.e. whether an SourceBuffer.appendBuffer()
, SourceBuffer.appendStream()
,
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. [Read Only] [Draft] [Experimental] The updating read-only property of the `web.audio.SourceBuffer` indicates whether the SourceBuffer is currently being updated i.e. whether an `SourceBuffer.appendBuffer()`, `SourceBuffer.appendStream()`, `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.
[Read Only] [Draft] [Experimental]
The videoTracks read-only property of the web.audio.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. [Read Only] [Draft] [Experimental] The videoTracks read-only property of the `web.audio.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