Liking cljdoc? Tell your friends :D

web.audio.MediaSource

The MediaSource interface of the Media Source Extensions API a source of media data for an web.media.HTMLMediaElement object. MediaSource object can be attached to a web.media.HTMLMediaElement be played in the user agent.

The MediaSource interface of the Media Source Extensions API
a source of media data for an `web.media.HTMLMediaElement` object.
MediaSource object can be attached to a `web.media.HTMLMediaElement`
be played in the user agent.
raw docstring

active-source-bufferscljs

(active-source-buffers this)

Property.

[Read Only]

The activeSourceBuffers read-only property of the web.audio.MediaSource returns a web.audio.SourceBufferList object containing a subset the web.audio.SourceBuffer objects contained within sourceBuffers the list of objects providing the selected video track, enabled tracks, and shown/hidden text tracks.

var myActiveSourceBuffers = mediaSource.activeSourceBuffers;

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/activeSourceBuffers

Property.

[Read Only]

The activeSourceBuffers read-only property of the `web.audio.MediaSource`
returns a `web.audio.SourceBufferList` object containing a subset
the `web.audio.SourceBuffer` objects contained within `sourceBuffers`
the list of objects providing the selected video track, enabled
tracks, and shown/hidden text tracks.

`var myActiveSourceBuffers = mediaSource.activeSourceBuffers;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/activeSourceBuffers`
sourceraw docstring

add-source-buffercljs

(add-source-buffer this mime-type)

Method.

The addSourceBuffer() method of the web.audio.MediaSource interface a new web.audio.SourceBuffer of the given MIME type and adds to the MediaSource's sourceBuffers list. The new SourceBuffer also returned.

var sourceBuffer = mediaSource.addSourceBuffer(mimeType);

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/addSourceBuffer

Method.

The addSourceBuffer() method of the `web.audio.MediaSource` interface
a new `web.audio.SourceBuffer` of the given MIME type and adds
to the MediaSource's `sourceBuffers` list. The new SourceBuffer
also returned.

`var sourceBuffer = mediaSource.addSourceBuffer(mimeType);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/addSourceBuffer`
sourceraw docstring

clear-live-seekable-rangecljs

(clear-live-seekable-range this)

Method.

[Experimental]

The clearLiveSeekableRange() method of the web.audio.MediaSource clears a seekable range privious set with a call to setLiveSeekableRange().

mediaSource.clearLiveSeekableRange()

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/clearLiveSeekableRange

Method.

[Experimental]

The clearLiveSeekableRange() method of the `web.audio.MediaSource`
clears a seekable range privious set with a call to `setLiveSeekableRange()`.

`mediaSource.clearLiveSeekableRange()`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/clearLiveSeekableRange`
sourceraw docstring

durationcljs

(duration this)

Property.

[Experimental]

The duration property of the web.audio.MediaSource interface and sets the duration of the current media being presented.

`mediaSource.duration = 5.5; // 5.5 seconds

var myDuration = mediaSource.duration;`

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/duration

Property.

[Experimental]

The duration property of the `web.audio.MediaSource` interface
and sets the duration of the current media being presented.

`mediaSource.duration = 5.5; // 5.5 seconds

var myDuration = mediaSource.duration;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/duration`
sourceraw docstring

end-of-streamcljs

(end-of-stream this end-of-stream-error)

Method.

[Experimental]

The endOfStream() method of the web.audio.MediaSource interface the end of the stream.

mediaSource.endOfStream(endOfStreamError);

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/endOfStream

Method.

[Experimental]

The endOfStream() method of the `web.audio.MediaSource` interface
the end of the stream.

`mediaSource.endOfStream(endOfStreamError);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/endOfStream`
sourceraw docstring

is-type-supportedcljs

(is-type-supported this mime-type)

Method.

The MediaSource.isTypeSupported() static method returns a js.Boolean which is true if the given MIME type is likely to be supported the current user agent.

var isItSupported = MediaSource.isTypeSupported(mimeType);

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/isTypeSupported

Method.

The MediaSource.isTypeSupported() static method returns a `js.Boolean`
which is true if the given MIME type is likely to be supported
the current user agent.

`var isItSupported = MediaSource.isTypeSupported(mimeType);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/isTypeSupported`
sourceraw docstring

onsourceclosecljs

(onsourceclose this)

Property.

The event handler for the sourceclose event.

Property.

The event handler for the sourceclose event.
sourceraw docstring

onsourceendedcljs

(onsourceended this)

Property.

The event handler for the sourceended event.

Property.

The event handler for the sourceended event.
sourceraw docstring

onsourceopencljs

(onsourceopen this)

Property.

The event handler for the sourceopen event.

Property.

The event handler for the sourceopen event.
sourceraw docstring

ready-statecljs

(ready-state this)

Property.

[Read Only] [Experimental]

The readyState read-only property of the web.audio.MediaSource returns an enum representing the state of the current MediaSource. three possible values are:

var myReadyState = mediaSource.readyState;

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/readyState

Property.

[Read Only]
[Experimental]

The readyState read-only property of the `web.audio.MediaSource`
returns an enum representing the state of the current MediaSource.
three possible values are:

`var myReadyState = mediaSource.readyState;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/readyState`
sourceraw docstring

remove-source-buffercljs

(remove-source-buffer this source-buffer)

Method.

[Experimental]

The removeSourceBuffer() method of the web.audio.MediaSource removes the given web.audio.SourceBuffer from the SourceBuffers associated with this MediaSource object.

mediaSource.removeSourceBuffer(sourceBuffer);

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/removeSourceBuffer

Method.

[Experimental]

The removeSourceBuffer() method of the `web.audio.MediaSource`
removes the given `web.audio.SourceBuffer` from the `SourceBuffers`
associated with this MediaSource object.

`mediaSource.removeSourceBuffer(sourceBuffer);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/removeSourceBuffer`
sourceraw docstring

set-duration!cljs

(set-duration! this val)

Property.

[Experimental]

The duration property of the web.audio.MediaSource interface and sets the duration of the current media being presented.

`mediaSource.duration = 5.5; // 5.5 seconds

var myDuration = mediaSource.duration;`

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/duration

Property.

[Experimental]

The duration property of the `web.audio.MediaSource` interface
and sets the duration of the current media being presented.

`mediaSource.duration = 5.5; // 5.5 seconds

var myDuration = mediaSource.duration;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/duration`
sourceraw docstring

set-live-seekable-rangecljs

(set-live-seekable-range this start end)

Method.

[Experimental]

The setLiveSeekableRange() method of the web.audio.MediaSource sets the range that the user can seek to in the media element.

mediaSource.setLiveSeekableRange(start, end)

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/setLiveSeekableRange

Method.

[Experimental]

The setLiveSeekableRange() method of the `web.audio.MediaSource`
sets the range that the user can seek to in the media element.

`mediaSource.setLiveSeekableRange(start, end)`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/setLiveSeekableRange`
sourceraw docstring

set-onsourceclose!cljs

(set-onsourceclose! this val)

Property.

The event handler for the sourceclose event.

Property.

The event handler for the sourceclose event.
sourceraw docstring

set-onsourceended!cljs

(set-onsourceended! this val)

Property.

The event handler for the sourceended event.

Property.

The event handler for the sourceended event.
sourceraw docstring

set-onsourceopen!cljs

(set-onsourceopen! this val)

Property.

The event handler for the sourceopen event.

Property.

The event handler for the sourceopen event.
sourceraw docstring

source-bufferscljs

(source-buffers this)

Property.

[Read Only] [Experimental]

The sourceBuffers read-only property of the web.audio.MediaSource returns a web.audio.SourceBufferList object containing the of web.audio.SourceBuffer objects associated with this MediaSource.

var mySourceBuffers = mediaSource.sourceBuffers;

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/sourceBuffers

Property.

[Read Only]
[Experimental]

The sourceBuffers read-only property of the `web.audio.MediaSource`
returns a `web.audio.SourceBufferList` object containing the
of `web.audio.SourceBuffer` objects associated with this MediaSource.

`var mySourceBuffers = mediaSource.sourceBuffers;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/sourceBuffers`
sourceraw docstring

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

× close