Interface: MediaTrackInit
Hierarchy
Partial<MediaTrack>↳
MediaTrackInit
Properties
constraints
• constraints: InputDeviceConstraint
expectedInput
• Optional expectedInput: MediaDeviceInfoLike
Overrides
Partial.expectedInput
id
• Optional id: string
A 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
Inherited from
Partial.id
input
• input: undefined | MediaDeviceInfoLike
Overrides
Partial.input
kind
• kind: "audioinput" | "videoinput"
Overrides
Partial.kind
label
• Optional label: string
Inherited from
Partial.label
muted
• Optional muted: boolean
The current mute state of the track. undefined means the track is not available
Inherited from
Partial.muted
overrideMute
• Optional overrideMute: boolean
previousMediaTrack
• Optional previousMediaTrack: MediaTrack
Inherited from
Partial.previousMediaTrack
signals
• Optional signals: MediaSignals
source
• Optional source: MediaTrack
The source track that it is originated from
Inherited from
Partial.source
track
• Optional track: MediaStreamTrack
The MediaStreamTrack object representing the track
See
https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack
Inherited from
Partial.track
Methods
applyConstraints
▸ Optional applyConstraints(constraints): Promise<void>
Parameters
| Name | Type |
|---|---|
constraints | InputDeviceConstraint |
Returns
Promise<void>
Inherited from
Partial.applyConstraints
clone
▸ Optional clone(): MediaTrack
Returns
Inherited from
Partial.clone
getConstraints
▸ Optional getConstraints(): InputDeviceConstraint
Returns
InputDeviceConstraint
Inherited from
Partial.getConstraints
getSettings
▸ Optional getSettings(): ExtendedMediaTrackSettings
Returns
Inherited from
Partial.getSettings
mute
▸ Optional mute(toMute): void
Parameters
| Name | Type |
|---|---|
toMute | boolean |
Returns
void
Inherited from
Partial.mute
release
▸ Optional release(): Promise<void>
Returns
Promise<void>
Inherited from
Partial.release
toJSON
▸ Optional toJSON(): unknown
Returns
unknown
Inherited from
Partial.toJSON