Liking cljdoc? Tell your friends :D

web.audio.SourceBuffer

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.
raw docstring

abortcljs

(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`
sourceraw docstring

append-buffercljs

(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`
sourceraw docstring

append-buffer-asynccljs

(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`
sourceraw docstring

append-streamcljs

(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`
sourceraw docstring

append-window-endcljs

(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`
sourceraw docstring

append-window-startcljs

(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`
sourceraw docstring

audio-trackscljs

(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`
sourceraw docstring

bufferedcljs

(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`
sourceraw docstring

change-typecljs

(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`
sourceraw docstring

modecljs

(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`
sourceraw docstring

onabortcljs

(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.
sourceraw docstring

onerrorcljs

(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.
sourceraw docstring

onupdatecljs

(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.
sourceraw docstring

onupdateendcljs

(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.
sourceraw docstring

onupdatestartcljs

(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.
sourceraw docstring

removecljs

(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`
sourceraw docstring

remove-asynccljs

(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`
sourceraw docstring

set-append-window-end!cljs

(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`
sourceraw docstring

set-append-window-start!cljs

(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`
sourceraw docstring

set-mode!cljs

(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`
sourceraw docstring

set-onabort!cljs

(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.
sourceraw docstring

set-onerror!cljs

(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.
sourceraw docstring

set-onupdate!cljs

(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.
sourceraw docstring

set-onupdateend!cljs

(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.
sourceraw docstring

set-onupdatestart!cljs

(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.
sourceraw docstring

set-timestamp-offset!cljs

(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`
sourceraw docstring

set-track-defaults!cljs

(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`
sourceraw docstring

text-trackscljs

(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`
sourceraw docstring

timestamp-offsetcljs

(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`
sourceraw docstring

track-defaultscljs

(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`
sourceraw docstring

updatingcljs

(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`
sourceraw docstring

video-trackscljs

(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`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close