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.video.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.video.MediaStreamTrack`.
(active this)
Property.
[Read Only]
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.video.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
Property. [Read Only] 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.video.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`
(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.video.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.video.MediaStreamTrack`. `stream.addTrack(track);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/addTrack`
(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.video.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.video.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`
(constructor & args)
Constructor.
The MediaStream() constructor returns a newly-created web.streams.MediaStream
, which serves as a collection of media tracks, each represented by a web.video.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.video.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.video.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.video.MediaStreamTrack` objects, one for each track to add to the stream. See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/MediaStream`
(ended this)
Property.
[Read Only] [Obsolute]
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. [Read Only] [Obsolute] 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`
(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.
(get-track-by-id this id)
Method.
The MediaStream.getTrackById() method returns a web.video.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.video.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`
(get-tracks this)
Method.
[Experimental]
The getTracks() method of the web.streams.MediaStream
interface
a sequence that represents all the web.video.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. [Experimental] The getTracks() method of the `web.streams.MediaStream` interface a sequence that represents all the `web.video.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`
(get-video-tracks this)
Method.
The getVideoTracks() method of the web.streams.MediaStream
returns a sequence of web.video.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.video.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`
(id this)
Property.
[Read Only]
The MediaStream.id() read-only property is a web.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. [Read Only] The MediaStream.id() read-only property is a `web.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`
(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`
(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`
(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.
(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`
(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`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close