Skip to main content

MediaTrackInit

Extends

Properties

PropertyModifierTypeDescriptionOverridesInherited from
id?readonlystringA unique identifier for the track same as MediaStreamTrack.id if track is available otherwise it uses the id from the construction or the kind. See MediaTrackInit-MediaTrack.id
stopped?readonlybooleanIt maps to MediaStreamTrack['readyState'] When true the track's readyState is ended, false means live otherwise the track is not available-MediaTrack.stopped
suspended?readonlybooleanIndicate that the media has been suspended by the User Agent, and it could happen at any time. undefined means the track is not available-MediaTrack.suspended
label?readonlystring--MediaTrack.label
previousMediaTrack?readonlyMediaTrack--MediaTrack.previousMediaTrack
track?readonlyMediaStreamTrackThe MediaStreamTrack object representing the track See https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack-MediaTrack.track
muted?publicbooleanThe current mute state of the track. undefined means the track is not available-MediaTrack.muted
source?readonlyMediaTrackThe source track that it is originated from-MediaTrack.source
getSettings?public() => ExtendedMediaTrackSettings--MediaTrack.getSettings
getConstraints?public() => InputDeviceConstraint--MediaTrack.getConstraints
applyConstraints?public(constraints) => Promise<void>--MediaTrack.applyConstraints
release?public() => Promise<void>--MediaTrack.release
clone?public(signals?, label?) => MediaTrack--MediaTrack.clone
toJSON?public() => unknown--MediaTrack.toJSON
kindpublic"audioinput" | "videoinput"-MediaTrack.kind-
inputpublicMediaDeviceInfoLike | undefinedThe MediaDeviceInfo object representing the device that the track is connected to. See https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfoMediaTrack.input-
expectedInput?publicMediaDeviceInfoLikeThe MediaDeviceInfo object representing the device that the track is expected to be connected to. See https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfoMediaTrack.expectedInput-
constraintspublicInputDeviceConstraint---
overrideMute?publicboolean---
signals?publicMediaSignals---
mute?public(toMute, self, soft?) => voidOverriding Mute the track--