Liking cljdoc? Tell your friends :D

web.streams.MediaStream

The MediaStream interface represents a stream of media content. stream consists of several tracks such as video or audio tracks. track is specified as an instance of web.audio.MediaStreamTrack.

The MediaStream interface represents a stream of media content.
stream consists of several tracks such as video or audio tracks.
track is specified as an instance of `web.audio.MediaStreamTrack`.
raw docstring

activecljs

(active this)

Property.

The active read-only property of the web.streams.MediaStream returns a Boolean value which is true if the stream is currently otherwise, it returns false. A stream is considered active if least one of its web.audio.MediaStreamTracks is not in the state. Once every track has ended, the stream's active property false.

var isActive = MediaStream.active;

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

Property.

The active read-only property of the `web.streams.MediaStream`
returns a Boolean value which is true if the stream is currently
otherwise, it returns false. A stream is considered active if
least one of its `web.audio.MediaStreamTrack`s is not in the
state. Once every track has ended, the stream's active property
false.

`var isActive = MediaStream.active;`

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

add-trackcljs

(add-track this track)

Method.

The MediaStream.addTrack() method adds a new track to the stream. track is specified as a parameter of type web.audio.MediaStreamTrack.

stream.addTrack(track);

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

Method.

The MediaStream.addTrack() method adds a new track to the stream.
track is specified as a parameter of type `web.audio.MediaStreamTrack`.

`stream.addTrack(track);`

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

clonecljs

(clone this)

Method.

The clone() method of the web.streams.MediaStream interface a duplicate of the MediaStream. This new MediaStream object has new unique id and contains clones of every web.audio.MediaStreamTrack by the MediaStream on which clone() was called.

var stream = MediaStream.clone();

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

Method.

The clone() method of the `web.streams.MediaStream` interface
a duplicate of the MediaStream. This new MediaStream object has
new unique `id` and contains clones of every `web.audio.MediaStreamTrack`
by the MediaStream on which clone() was called.

`var stream = MediaStream.clone();`

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

constructorcljs

Constructor.

The MediaStream() constructor returns a newly-created web.streams.MediaStream, which serves as a collection of media tracks, each represented by a web.audio.MediaStreamTrack object.

stream A different web.streams.MediaStream object whose tracks are added to the newly-created stream automatically. The tracks are not removed from the original stream, so they're shared by the two streams. tracks An js.Array of web.audio.MediaStreamTrack objects, one for each track to add to the stream.

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

Constructor.

The MediaStream() constructor returns a newly-created `web.streams.MediaStream`, which serves as a collection of media tracks, each represented by a `web.audio.MediaStreamTrack` object.

stream
A different `web.streams.MediaStream` object whose tracks are added to the newly-created stream automatically. The tracks are not removed from the original stream, so they're shared by the two streams.
tracks
An `js.Array` of `web.audio.MediaStreamTrack` objects, one for each track to add to the stream.

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

endedcljs

(ended this)

Property.

The ended read-only property of the web.streams.MediaStream returns a Boolean value which is true if the stream has been read, or false if the end of the stream has not been reached. value once the ended event has been fired.

var hasEnded = MediaStream.ended;

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

Property.

The ended read-only property of the `web.streams.MediaStream`
returns a Boolean value which is true if the stream has been
read, or false if the end of the stream has not been reached.
value once the ended event has been fired.

`var hasEnded = MediaStream.ended;`

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

get-audio-trackscljs

(get-audio-tracks this & args)

Method.

Returns a list of the MediaStreamTrack objects stored in the object that have their kind attribute set to "audio". The order not defined, and may not only vary from one browser to another, also from one call to another.

Method.

Returns a list of the MediaStreamTrack objects stored in the
object that have their kind attribute set to "audio". The order
not defined, and may not only vary from one browser to another,
also from one call to another.
sourceraw docstring

get-track-by-idcljs

(get-track-by-id this id)

Method.

The MediaStream.getTrackById() method returns a web.audio.MediaStreamTrack representing the track with the specified ID string. If there no track with the specified ID, this method returns null.

var track = MediaStream.getTrackById(id);

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

Method.

The MediaStream.getTrackById() method returns a `web.audio.MediaStreamTrack`
representing the track with the specified ID string. If there
no track with the specified ID, this method returns null.

`var track = MediaStream.getTrackById(id);`

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

get-trackscljs

(get-tracks this)

Method.

The getTracks() method of the web.streams.MediaStream interface a sequence that represents all the web.audio.MediaStreamTrack in this stream's track set, regardless of MediaStreamTrack.kind.

var mediaStreamTracks = mediaStream.getTracks()

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

Method.

The getTracks() method of the `web.streams.MediaStream` interface
a sequence that represents all the `web.audio.MediaStreamTrack`
in this stream's track set, regardless of `MediaStreamTrack.kind`.

`var mediaStreamTracks = mediaStream.getTracks()`

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

get-video-trackscljs

(get-video-tracks this)

Method.

The getVideoTracks() method of the web.streams.MediaStream returns a sequence of web.audio.MediaStreamTrack objects representing video tracks in this stream.

var mediaStreamTracks[] = mediaStream.getVideoTracks();

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

Method.

The getVideoTracks() method of the `web.streams.MediaStream`
returns a sequence of `web.audio.MediaStreamTrack` objects representing
video tracks in this stream.

`var mediaStreamTracks[] = mediaStream.getVideoTracks();`

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

idcljs

(id this)

Property.

The MediaStream.id() read-only property is a web.dom.DOMString 36 characters denoting a unique identifier (GUID) for the object.

var id = mediaStream.id;

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

Property.

The MediaStream.id() read-only property is a `web.dom.DOMString`
36 characters denoting a unique identifier (GUID) for the object.

`var id = mediaStream.id;`

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

onaddtrackcljs

(onaddtrack this)

Property.

The MediaStream.onaddtrack property is an EventHandler which a function to be called when the addtrack event occurs on a web.streams.MediaStream This happens when a new track of any kind is added to the media

MediaStream.onaddtrack = eventHandler;

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

Property.

The MediaStream.onaddtrack property is an `EventHandler` which
a function to be called when the addtrack event occurs on a `web.streams.MediaStream`
This happens when a new track of any kind is added to the media

`MediaStream.onaddtrack = eventHandler;`

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

onremovetrackcljs

(onremovetrack this)

Property.

The MediaStream.onremovetrack property is an EventHandler which a function to be called when the removetrack event occurs on web.streams.MediaStream instance. This happens when a track any kind is removed from the media stream.

MediaStream.onremovetrack = eventHandler;

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

Property.

The MediaStream.onremovetrack property is an `EventHandler` which
a function to be called when the removetrack event occurs on
`web.streams.MediaStream` instance. This happens when a track
any kind is removed from the media stream.

`MediaStream.onremovetrack = eventHandler;`

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

remove-trackcljs

(remove-track this & args)

Method.

Removes the MediaStreamTrack given as argument. If the track not part of the MediaStream object, nothing happens.

Method.

Removes the MediaStreamTrack given as argument. If the track
not part of the MediaStream object, nothing happens.
sourceraw docstring

set-active!cljs

(set-active! this val)

Property.

The active read-only property of the web.streams.MediaStream returns a Boolean value which is true if the stream is currently otherwise, it returns false. A stream is considered active if least one of its web.audio.MediaStreamTracks is not in the state. Once every track has ended, the stream's active property false.

var isActive = MediaStream.active;

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

Property.

The active read-only property of the `web.streams.MediaStream`
returns a Boolean value which is true if the stream is currently
otherwise, it returns false. A stream is considered active if
least one of its `web.audio.MediaStreamTrack`s is not in the
state. Once every track has ended, the stream's active property
false.

`var isActive = MediaStream.active;`

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

set-ended!cljs

(set-ended! this val)

Property.

The ended read-only property of the web.streams.MediaStream returns a Boolean value which is true if the stream has been read, or false if the end of the stream has not been reached. value once the ended event has been fired.

var hasEnded = MediaStream.ended;

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

Property.

The ended read-only property of the `web.streams.MediaStream`
returns a Boolean value which is true if the stream has been
read, or false if the end of the stream has not been reached.
value once the ended event has been fired.

`var hasEnded = MediaStream.ended;`

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

set-onaddtrack!cljs

(set-onaddtrack! this val)

Property.

The MediaStream.onaddtrack property is an EventHandler which a function to be called when the addtrack event occurs on a web.streams.MediaStream This happens when a new track of any kind is added to the media

MediaStream.onaddtrack = eventHandler;

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

Property.

The MediaStream.onaddtrack property is an `EventHandler` which
a function to be called when the addtrack event occurs on a `web.streams.MediaStream`
This happens when a new track of any kind is added to the media

`MediaStream.onaddtrack = eventHandler;`

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

set-onremovetrack!cljs

(set-onremovetrack! this val)

Property.

The MediaStream.onremovetrack property is an EventHandler which a function to be called when the removetrack event occurs on web.streams.MediaStream instance. This happens when a track any kind is removed from the media stream.

MediaStream.onremovetrack = eventHandler;

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

Property.

The MediaStream.onremovetrack property is an `EventHandler` which
a function to be called when the removetrack event occurs on
`web.streams.MediaStream` instance. This happens when a track
any kind is removed from the media stream.

`MediaStream.onremovetrack = eventHandler;`

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

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

× close