Constructs a new JitsiLocalTrack instance.
The contraints used for creating the track.
The ID assigned by the RTC module.
The WebRTC MediaStream, parent of the track.
The underlying WebRTC MediaStreamTrack for new JitsiLocalTrack.
The MediaType of the JitsiLocalTrack.
The VideoType of the JitsiLocalTrack.
The effects to be applied to the JitsiLocalTrack.
The ID of the local device for this track.
Thehe camera facing mode used in getUserMedia call (for mobile only).
The id of the desktop sharing source, which is the Chrome media source ID, returned by Desktop Picker on Electron. NOTE: defined for desktop sharing tracks only.
The type of source the track originates from.
Optional
maxOptional
resolutionOptional
sourceOptional
sourceApplies media constraints to the current MediaStreamTrack.
Media constraints to apply.
Attaches the MediaStream of this track to an HTML container. Adds the container to the list of containers that are displaying the track.
the HTML container which can be 'video' or 'audio' element.
Removes this JitsiTrack from the passed HTML container.
Optional
container: HTMLElementthe HTML container to detach from this JitsiTrack. If null or undefined, all containers are removed. A container can be a 'video', 'audio' or 'object' HTML element instance to which this JitsiTrack is currently attached.
Returns facing mode for video track from camera. For other cases (e.g. audio track or 'desktop' video track) returns undefined.
Returns the capture resolution of the video track.
Returns device id associated with track.
Get the duration of the track.
the duration of the track in seconds
Returns the height of the track in normalized landscape format.
Returns id of the track.
id of the track or null if this is fake track.
Returns the WebRTC MediaStream instance.
Returns the participant id which owns the track.
the id of the participants. It corresponds to the Colibri endpoint id/MUC nickname in case of Jitsi-meet.
Returns the source name associated with the jitsi track.
source name
Returns the primary SSRC associated with the track.
Returns the ID of the underlying WebRTC Media Stream(if any)
Return the underlying WebRTC MediaStreamTrack
Returns the ID of the underlying WebRTC MediaStreamTrack(if any)
Return the underlying WebRTC MediaStreamTrack label
Returns the type (audio or video) of this track.
Return meaningful usage label for this track depending on it's media and eventual video type.
Returns the video type (camera or desktop) of this track.
Returns the width of the track in normalized landscape format.
Checks whether the MediaStream is active/not ended. When there is no check for active we don't have information and so will return that stream is active (in case of FF).
whether MediaStream is active.
Check if this is an audio track.
Returns if associated MediaStreamTrack is in the 'ended' state
Returns true.
true
Check whether this is a local audio track.
Returns true - if the stream is muted and false otherwise.
true - if the stream is muted and false otherwise.
Checks whether the attached MediaStream is receiving data from source or not. If the stream property is null (because of mute or another reason) this method will return false. NOTE: This method doesn't indicate problem with the streams directly. For example in case of video mute the method will return false or if the user has disposed the track.
true if the stream is receiving data and false this otherwise.
Check if this is a video track.
Asynchronously mutes this track.
Handles bytes sent statistics. NOTE: used only for audio tracks to detect audio issues.
The peerconnection that is reporting the bytes sent stat.
The new value.
Sets the audio level for the stream
value between 0 and 1
Optional
tpc: TraceablePeerConnectionthe peerconnection instance which is source for the audio level. It can be undefined for a local track if the audio level was measured outside of the peerconnection (see /modules/statistics/LocalStatsCollector.js).
Sets new audio output device for track's DOM elements. Video tracks are
ignored. Emits JitsiTrackEvents.TRACK_AUDIO_OUTPUT_CHANGED
.
id of 'audiooutput' device from navigator.mediaDevices.enumerateDevices(), '' for default device
Sets the JitsiConference object associated with the track. This is temp solution.
JitsiConference object.
Sets the effect and switches between the modified stream and original one.
Optional
effect: IStreamEffectRepresents the effect instance to be used.
Sets the primary SSRC for the track.
The SSRC.
Stops the associated MediaStream.
Creates a text representation of this local track instance.
Asynchronously unmutes this track.
Represents a single media track(either audio or video). One JitsiLocalTrack corresponds to one WebRTC MediaStreamTrack.