Skip to main content

MediaTrackInit

Extends

Properties

PropertyModifierTypeDescriptionOverridesInherited from
applyConstraints?public(constraints) => Promise<void>--MediaTrack.applyConstraints
clone?public(signals?, label?) => MediaTrack--MediaTrack.clone
constraintspublicInputDeviceConstraint---
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-
getConstraints?public() => InputDeviceConstraint--MediaTrack.getConstraints
getSettings?public() => ExtendedMediaTrackSettings--MediaTrack.getSettings
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
inputpublicundefined | MediaDeviceInfoLikeThe MediaDeviceInfo object representing the device that the track is connected to. See https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfoMediaTrack.input-
kindpublic"audioinput" | "videoinput"-MediaTrack.kind-
label?readonlystring--MediaTrack.label
mute?public(toMute, self, soft?) => voidOverriding Mute the track--
muted?publicbooleanThe current mute state of the track. undefined means the track is not available-MediaTrack.muted
overrideMute?publicboolean---
previousMediaTrack?readonlyMediaTrack--MediaTrack.previousMediaTrack
release?public() => Promise<void>--MediaTrack.release
signals?publicMediaSignals---
source?readonlyMediaTrackThe source track that it is originated from-MediaTrack.source
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
toJSON?public() => unknown--MediaTrack.toJSON
track?readonlyMediaStreamTrackThe MediaStreamTrack object representing the track See https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack-MediaTrack.track