Liking cljdoc? Tell your friends :D

media.MediaSource

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

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

active-source-bufferscljs

(active-source-buffers this)

Property.

The activeSourceBuffers read-only property of the media.MediaSource returns a web.SourceBufferList object containing a subset of web.SourceBuffer objects contained within web.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.

The activeSourceBuffers read-only property of the `media.MediaSource`
returns a `web.SourceBufferList` object containing a subset of
`web.SourceBuffer` objects contained within `web.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 media.MediaSource interface a new web.SourceBuffer of the given MIME type and adds it to MediaSource's web.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 `media.MediaSource` interface
a new `web.SourceBuffer` of the given MIME type and adds it to
MediaSource's `web.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.

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

mediaSource.clearLiveSeekableRange()

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

Method.

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

`mediaSource.clearLiveSeekableRange()`

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

constructorcljs

Constructor.

The MediaSource() constructor of the media.MediaSource interface constructs and returns a new MediaSource object with no associated source buffers.

None.

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

Constructor.

The MediaSource() constructor of the `media.MediaSource` interface constructs and returns a new MediaSource object with no associated source buffers.

None.

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

durationcljs

(duration this)

Property.

The duration property of the media.MediaSource interface gets 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.

The duration property of the `media.MediaSource` interface gets
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.

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

mediaSource.endOfStream(endOfStreamError);

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

Method.

The endOfStream() method of the `media.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 isTypeSupported() method of the media.MediaSource interface a web.Boolean value indicating if the given MIME type is supported the current user agent — this is, if it can successfully create objects for that MIME type.

var isItSupported = mediaSource.isTypeSupported(mimeType);

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

Method.

The isTypeSupported() method of the `media.MediaSource` interface
a `web.Boolean` value indicating if the given MIME type is supported
the current user agent — this is, if it can successfully create
objects for that MIME type.

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

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

ready-statecljs

(ready-state this)

Property.

The readyState read-only property of the media.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.

The readyState read-only property of the `media.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.

The removeSourceBuffer() method of the media.MediaSource interface the given web.SourceBuffer from the web.SourceBuffers list with this MediaSource object.

mediaSource.removeSourceBuffer(sourceBuffer);

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

Method.

The removeSourceBuffer() method of the `media.MediaSource` interface
the given `web.SourceBuffer` from the `web.SourceBuffers` list
with this MediaSource object.

`mediaSource.removeSourceBuffer(sourceBuffer);`

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

set-active-source-buffers!cljs

(set-active-source-buffers! this val)

Property.

The activeSourceBuffers read-only property of the media.MediaSource returns a web.SourceBufferList object containing a subset of web.SourceBuffer objects contained within web.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.

The activeSourceBuffers read-only property of the `media.MediaSource`
returns a `web.SourceBufferList` object containing a subset of
`web.SourceBuffer` objects contained within `web.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

set-duration!cljs

(set-duration! this val)

Property.

The duration property of the media.MediaSource interface gets 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.

The duration property of the `media.MediaSource` interface gets
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.

The setLiveSeekableRange() method of the media.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.

The setLiveSeekableRange() method of the `media.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-ready-state!cljs

(set-ready-state! this val)

Property.

The readyState read-only property of the media.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.

The readyState read-only property of the `media.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

set-source-buffers!cljs

(set-source-buffers! this val)

Property.

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

var mySourceBuffers = mediaSource.sourceBuffers;

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

Property.

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

`var mySourceBuffers = mediaSource.sourceBuffers;`

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

source-bufferscljs

(source-buffers this)

Property.

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

var mySourceBuffers = mediaSource.sourceBuffers;

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

Property.

The sourceBuffers read-only property of the `media.MediaSource`
returns a `web.SourceBufferList` object containing the list of
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