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 web.video.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 `web.video.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 web.video.MediaStreamTrack
interface
a duplicate of the MediaStreamTrack. This new MediaStreamTrack
is identical except for its unique id
.
var track = MediaStreamTrack.clone();
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/clone
Method. The clone() method of the `web.video.MediaStreamTrack` interface a duplicate of the MediaStreamTrack. This new MediaStreamTrack is identical except for its unique `id`. `var track = MediaStreamTrack.clone();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/clone`
(content-hint this)
Property.
A string that may be used by the web application to provide a as to what type of content the track contains to guide how it be treated by API consumers.
Property. A string that may be used by the web application to provide a as to what type of content the track contains to guide how it be treated by API consumers.
(enabled this)
Property.
The enabled property on the web.video.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 `web.video.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 web.video.MediaStreamTrack
returns a MediaTrackCapabilities
object which specifies the
or range of values which each constrianable property, based upon
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 `web.video.MediaStreamTrack` returns a `MediaTrackCapabilities` object which specifies the or range of values which each constrianable property, based upon 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 web.video.MediaStreamTrack
returns a web.streams.MediaTrackConstraints
object containing
set of constraints most recently established for the track using
prior call to applyConstraints()
. These constraints indicate
and ranges of values that the Web site or application has specified
required or acceptable for 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 `web.video.MediaStreamTrack` returns a `web.streams.MediaTrackConstraints` object containing set of constraints most recently established for the track using prior call to `applyConstraints()`. These constraints indicate and ranges of values that the Web site or application has specified required or acceptable for 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 web.video.MediaStreamTrack
returns a web.video.MediaTrackSettings
object containing the
values of each of the constrainable properties for the current
var settings = MediaStreamTrack.getSettings();
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/getSettings
Method. The getSettings() method of the `web.video.MediaStreamTrack` returns a `web.video.MediaTrackSettings` object containing the values of each of the constrainable properties for the current `var settings = MediaStreamTrack.getSettings();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/getSettings`
(id this)
Property.
[Read Only]
The read-only property MediaStreamTrack.id returns a web.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. [Read Only] The read-only property MediaStreamTrack.id returns a `web.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`
(isolated this)
Property.
Returns a Boolean value which is true if the track is isolated; is, the track cannot be accessed by the document that owns the This happens when the peerIdentity property is set, or if the comes from a cross-origin source.
Property. Returns a Boolean value which is true if the track is isolated; is, the track cannot be accessed by the document that owns the This happens when the peerIdentity property is set, or if the comes from a cross-origin source.
(kind this)
Property.
[Read Only]
The read-only property MediaStreamTrack.kind returns a web.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. [Read Only] The read-only property MediaStreamTrack.kind returns a `web.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.
[Read Only]
The read-only property MediaStreamTrack.label returns a web.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. [Read Only] The read-only property MediaStreamTrack.label returns a `web.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.
[Read Only]
The muted read-only property of the web.video.MediaStreamTrack
returns a js.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. [Read Only] The muted read-only property of the `web.video.MediaStreamTrack` returns a `js.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 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 `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.
web.video.MediaStreamTrack
's onmute event handler is called
the mute event is received.
track.onmute = muteHandler;
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onmute
Property. `web.video.MediaStreamTrack`'s onmute event handler is called the 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.
web.video.MediaStreamTrack
's onunmute event handler is called
the unmute event is received. Such an event is sent when the
is again able to send data.
track.onunmute = unmuteHandler;
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onunmute
Property. `web.video.MediaStreamTrack`'s onunmute event handler is called the unmute event is received. Such an event is sent when the is again able to send data. `track.onunmute = unmuteHandler;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onunmute`
(readonly this)
Property.
Returns a Boolean value with a value of true if the track is (such a video file source or a camera that settings can't be false otherwise.
Property. Returns a Boolean value with a value of true if the track is (such a video file source or a camera that settings can't be false otherwise.
(ready-state this)
Property.
[Read Only]
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. [Read Only] 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.
[Read Only] [Obsolute]
The MediaStreamTrack.remote read-only property allows Javascript
know whether a WebRTC MediaStreamTrack is from a remote source
a local one. It returns a js.Boolean
with a value of true if
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. [Read Only] [Obsolute] The MediaStreamTrack.remote read-only property allows Javascript know whether a WebRTC MediaStreamTrack is from a remote source a local one. It returns a `js.Boolean` with a value of true if 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-content-hint! this val)
Property.
A string that may be used by the web application to provide a as to what type of content the track contains to guide how it be treated by API consumers.
Property. A string that may be used by the web application to provide a as to what type of content the track contains to guide how it be treated by API consumers.
(set-enabled! this val)
Property.
The enabled property on the web.video.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 `web.video.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-isolated! this val)
Property.
Returns a Boolean value which is true if the track is isolated; is, the track cannot be accessed by the document that owns the This happens when the peerIdentity property is set, or if the comes from a cross-origin source.
Property. Returns a Boolean value which is true if the track is isolated; is, the track cannot be accessed by the document that owns the This happens when the peerIdentity property is set, or if the comes from a cross-origin source.
(set-onended! this val)
Property.
The MediaStreamTrack.onended event handler is used to specify
function which serves as an 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 `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.
web.video.MediaStreamTrack
's onmute event handler is called
the mute event is received.
track.onmute = muteHandler;
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onmute
Property. `web.video.MediaStreamTrack`'s onmute event handler is called the 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.
web.video.MediaStreamTrack
's onunmute event handler is called
the unmute event is received. Such an event is sent when the
is again able to send data.
track.onunmute = unmuteHandler;
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onunmute
Property. `web.video.MediaStreamTrack`'s onunmute event handler is called the unmute event is received. Such an event is sent when the is again able to send data. `track.onunmute = unmuteHandler;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onunmute`
(set-readonly! this val)
Property.
Returns a Boolean value with a value of true if the track is (such a video file source or a camera that settings can't be false otherwise.
Property. Returns a Boolean value with a value of true if the track is (such a video file source or a camera that settings can't be false otherwise.
(stop this & args)
Method.
In short, the web.video.MediaStreamTrack
method stop() method
the 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 track
state is set to ended.`
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/stop
Method. In short, the `web.video.MediaStreamTrack` method stop() method the 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 `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