The MediaStreamTrack interface represents a single media track a stream; typically, these are audio or video tracks, but other types may exist as well.
The MediaStreamTrack interface represents a single media track a stream; typically, these are audio or video tracks, but other types may exist as well.
(apply-constraints this constraints)
Method.
The applyConstraints() method of the media.MediaStreamTrack
applies a set of constraints to the track; these constraints
the Web site or app establish ideal values and acceptable ranges
values for the constrainable properties of the track, such as
rate, dimensions, echo cancelation, and so forth.
var appliedPromise = MediaStreamTrack.applyConstraints(constraints);
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/applyConstraints
Method. The applyConstraints() method of the `media.MediaStreamTrack` applies a set of constraints to the track; these constraints the Web site or app establish ideal values and acceptable ranges values for the constrainable properties of the track, such as rate, dimensions, echo cancelation, and so forth. `var appliedPromise = MediaStreamTrack.applyConstraints(constraints);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/applyConstraints`
(clone this)
Method.
The clone() method of the media.MediaStreamTrack
interface
a duplicate of the MediaStreamTrack. This new MediaStreamTrack
is identical except for its unique web.id
.
var track = MediaStreamTrack.clone();
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/clone
Method. The clone() method of the `media.MediaStreamTrack` interface a duplicate of the MediaStreamTrack. This new MediaStreamTrack is identical except for its unique `web.id`. `var track = MediaStreamTrack.clone();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/clone`
(enabled this)
Property.
The enabled property on the media.MediaStreamTrack
interface
a Boolean value which is true if the track is allowed to render
source stream or false if it is not. This can be used to intentionally
a track.
var bool = track.enabled; track.enabled = [true | false];
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/enabled
Property. The enabled property on the `media.MediaStreamTrack` interface a Boolean value which is true if the track is allowed to render source stream or false if it is not. This can be used to intentionally a track. `var bool = track.enabled; track.enabled = [true | false];` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/enabled`
(get-capabilities this)
Method.
The getCapabilities() method of the media.MediaStreamTrack
returns a media.MediaTrackCapabilities
object which specifies
values or range of values which each constrianable property,
upon the platform and user agent.
var capabilities = MediaStreamTrack.getCapabilities();
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/getCapabilities
Method. The getCapabilities() method of the `media.MediaStreamTrack` returns a `media.MediaTrackCapabilities` object which specifies values or range of values which each constrianable property, upon the platform and user agent. `var capabilities = MediaStreamTrack.getCapabilities();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/getCapabilities`
(get-constraints this)
Method.
The getConstraints() method of the media.MediaStreamTrack
interface
a media.MediaTrackConstraints
object containing the set of
most recently established for the track using a prior call to
These constraints indicate values and ranges of values that the
site or application has specified are required or acceptable
the included constrainable properties.
var constraints = MediaStreamTrack.getConstraints();
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/getConstraints
Method. The getConstraints() method of the `media.MediaStreamTrack` interface a `media.MediaTrackConstraints` object containing the set of most recently established for the track using a prior call to These constraints indicate values and ranges of values that the site or application has specified are required or acceptable the included constrainable properties. `var constraints = MediaStreamTrack.getConstraints();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/getConstraints`
(get-settings this)
Method.
The getSettings() method of the media.MediaStreamTrack
interface
a media.MediaTrackSettings
object containing the current values
each of the constrainable properties for the current MediaStreamTrack.
var settings = MediaStreamTrack.getSettings();
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/getSettings
Method. The getSettings() method of the `media.MediaStreamTrack` interface a `media.MediaTrackSettings` object containing the current values each of the constrainable properties for the current MediaStreamTrack. `var settings = MediaStreamTrack.getSettings();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/getSettings`
(id this)
Property.
The read-only property MediaStreamTrack.id returns a dom.DOMString
a unique identifier (GUID) for the track; it is generated by
browser.
var id = track.id;
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/id
Property. The read-only property MediaStreamTrack.id returns a `dom.DOMString` a unique identifier (GUID) for the track; it is generated by browser. `var id = track.id;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/id`
(kind this)
Property.
The read-only property MediaStreamTrack.kind returns a dom.DOMString
to "audio" if the track is an audio track and to "video",
it is a video track. It doesn't change if the track is deassociated
its source.
var type = track.kind;
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/kind
Property. The read-only property MediaStreamTrack.kind returns a `dom.DOMString` to \"audio\" if the track is an audio track and to \"video\", it is a video track. It doesn't change if the track is deassociated its source. `var type = track.kind;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/kind`
(label this)
Property.
The read-only property MediaStreamTrack.label returns a dom.DOMString
a user agent-assigned label that identifies the track source,
in "internal microphone". The string may be left empty and
empty as long as no source has been connected. When the track
deassociated from its source, the label is not changed.
var name = track.label;
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/label
Property. The read-only property MediaStreamTrack.label returns a `dom.DOMString` a user agent-assigned label that identifies the track source, in \"internal microphone\". The string may be left empty and empty as long as no source has been connected. When the track deassociated from its source, the label is not changed. `var name = track.label;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/label`
(muted this)
Property.
The muted read-only property of the media.MediaStreamTrack
returns a web.Boolean
value indicating whether or not the track
currently unable to provide media output.
mutedFlag = MediaStreamTrack.muted;
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/muted
Property. The muted read-only property of the `media.MediaStreamTrack` returns a `web.Boolean` value indicating whether or not the track currently unable to provide media output. `mutedFlag = MediaStreamTrack.muted;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/muted`
(onended this)
Property.
The MediaStreamTrack.onended event handler is used to specify
function which serves as an web.EventHandler
to be called when
ended event occurs on the track. This event occurs when the track
no longer provide data to the stream for any reason, including
end of the media input being reached, the user revoking needed
the source device being removed, or the remote peer ending a
MediaStreamTrack.onended = function;
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onended
Property. The MediaStreamTrack.onended event handler is used to specify function which serves as an `web.EventHandler` to be called when ended event occurs on the track. This event occurs when the track no longer provide data to the stream for any reason, including end of the media input being reached, the user revoking needed the source device being removed, or the remote peer ending a `MediaStreamTrack.onended = function;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onended`
(onmute this)
Property.
media.MediaStreamTrack
's onmute event handler is called when
mute event is received.
track.onmute = muteHandler;
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onmute
Property. `media.MediaStreamTrack`'s onmute event handler is called when mute event is received. `track.onmute = muteHandler;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onmute`
(onoverconstrained this)
Property.
The MediaStreamTrack.onoverconstrained event handler is a property when the overconstrained event is received. Such an event is when the track is again able to send data.
track.onoverconstrained = function;
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onoverconstrained
Property. The MediaStreamTrack.onoverconstrained event handler is a property when the overconstrained event is received. Such an event is when the track is again able to send data. `track.onoverconstrained = function;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onoverconstrained`
(onunmute this)
Property.
media.MediaStreamTrack
's onunmute event handler is called when
unmute event is received. Such an event is sent when the track
again able to send data.
track.onunmute = unmuteHandler;
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onunmute
Property. `media.MediaStreamTrack`'s onunmute event handler is called when unmute event is received. Such an event is sent when the track again able to send data. `track.onunmute = unmuteHandler;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onunmute`
(ready-state this)
Property.
The read-only property MediaStreamTrack.readyState returns an value giving the status of the track.
var state = track.readyState;
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/readyState
Property. The read-only property MediaStreamTrack.readyState returns an value giving the status of the track. `var state = track.readyState;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/readyState`
(remote this)
Property.
The MediaStreamTrack.remote read-only property allows Javascript
know whether a WebRTC MediaStreamTrack is from a remote source
a local one. It returns a web.Boolean
with a value of true
the track is sourced remotely (that is, sourced by an RTCPeerConnection),
false if it is sourced locally.
var bool = track.remote;
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/remote
Property. The MediaStreamTrack.remote read-only property allows Javascript know whether a WebRTC MediaStreamTrack is from a remote source a local one. It returns a `web.Boolean` with a value of true the track is sourced remotely (that is, sourced by an RTCPeerConnection), false if it is sourced locally. `var bool = track.remote;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/remote`
(set-enabled! this val)
Property.
The enabled property on the media.MediaStreamTrack
interface
a Boolean value which is true if the track is allowed to render
source stream or false if it is not. This can be used to intentionally
a track.
var bool = track.enabled; track.enabled = [true | false];
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/enabled
Property. The enabled property on the `media.MediaStreamTrack` interface a Boolean value which is true if the track is allowed to render source stream or false if it is not. This can be used to intentionally a track. `var bool = track.enabled; track.enabled = [true | false];` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/enabled`
(set-muted! this val)
Property.
The muted read-only property of the media.MediaStreamTrack
returns a web.Boolean
value indicating whether or not the track
currently unable to provide media output.
mutedFlag = MediaStreamTrack.muted;
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/muted
Property. The muted read-only property of the `media.MediaStreamTrack` returns a `web.Boolean` value indicating whether or not the track currently unable to provide media output. `mutedFlag = MediaStreamTrack.muted;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/muted`
(set-onended! this val)
Property.
The MediaStreamTrack.onended event handler is used to specify
function which serves as an web.EventHandler
to be called when
ended event occurs on the track. This event occurs when the track
no longer provide data to the stream for any reason, including
end of the media input being reached, the user revoking needed
the source device being removed, or the remote peer ending a
MediaStreamTrack.onended = function;
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onended
Property. The MediaStreamTrack.onended event handler is used to specify function which serves as an `web.EventHandler` to be called when ended event occurs on the track. This event occurs when the track no longer provide data to the stream for any reason, including end of the media input being reached, the user revoking needed the source device being removed, or the remote peer ending a `MediaStreamTrack.onended = function;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onended`
(set-onmute! this val)
Property.
media.MediaStreamTrack
's onmute event handler is called when
mute event is received.
track.onmute = muteHandler;
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onmute
Property. `media.MediaStreamTrack`'s onmute event handler is called when mute event is received. `track.onmute = muteHandler;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onmute`
(set-onoverconstrained! this val)
Property.
The MediaStreamTrack.onoverconstrained event handler is a property when the overconstrained event is received. Such an event is when the track is again able to send data.
track.onoverconstrained = function;
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onoverconstrained
Property. The MediaStreamTrack.onoverconstrained event handler is a property when the overconstrained event is received. Such an event is when the track is again able to send data. `track.onoverconstrained = function;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onoverconstrained`
(set-onunmute! this val)
Property.
media.MediaStreamTrack
's onunmute event handler is called when
unmute event is received. Such an event is sent when the track
again able to send data.
track.onunmute = unmuteHandler;
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onunmute
Property. `media.MediaStreamTrack`'s onunmute event handler is called when unmute event is received. Such an event is sent when the track again able to send data. `track.onunmute = unmuteHandler;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onunmute`
(stop this & args)
Method.
In short, the media.MediaStreamTrack
method stop() method stops
track.
`MediaStreamTrack.stop();
Calling stop() tells the user agent that the track's source—whatever that source may be, including files, network streams, or a local camera or microphone—is no longer needed by the MediaStreamTrack. Since multiple tracks may use the same source (for example, if two tabs are using the device's microphone), the source itself isn't necessarily immediately stopped. It is instead disassociated from the track and the track object is stopped. Once no media tracks are using the source, the source may actually be completely stopped.
Immediately after calling stop(), the web.track
state is set to ended.`
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/stop
Method. In short, the `media.MediaStreamTrack` method stop() method stops track. `MediaStreamTrack.stop(); Calling stop() tells the user agent that the track's source—whatever that source may be, including files, network streams, or a local camera or microphone—is no longer needed by the MediaStreamTrack. Since multiple tracks may use the same source (for example, if two tabs are using the device's microphone), the source itself isn't necessarily immediately stopped. It is instead disassociated from the track and the track object is stopped. Once no media tracks are using the source, the source may actually be completely stopped. Immediately after calling stop(), the `web.track` state is set to ended.` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/stop`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close