Private
activeReadonly
activeThe MediaDeviceInfo of the active audio device
Private
activeReadonly
activeThe MediaDeviceInfo of the active video device
Readonly
audioThe list of available audio input devices
Readonly
audioThe local audio stream
Private
audioReadonly
audioThe list of available video input devices
Private
beforeReadonly
canIndicates if it is possible to change to a different camera
Readonly
canIndicates if video can be enabled or disabled
Private
devices$Private
forceReadonly
isIndicates if local audio is muted
Private
isReadonly
isIndicates if push to talk is active
Private
isReadonly
isIndicates if local video is muted
Private
isReadonly
mediaThe media constraints configured for the call
Private
mediaReadonly
mediaThe media types configured for the call
Private
mediaPrivate
roomPrivate
subscriptionReadonly
videoThe list of available audio output devices
Readonly
videoThe local video stream
Private
videoReturns the local audio stream
Indicates if local audio is muted
Indicates if local video is muted
Return the media constraints configured for the call
Return the media types configured for the call
Returns the local video stream
Private
getObtains current enabled media stream constraints. This is a combination of the media stream constraints configured for the call and the current media types.
Private
getMutes or unmutes the video. If no parameter is specified it toggles current value.
Note that this method just turns the emitted video black and implies no media renegotiation. Therefore, a video track will continue to be streamed. If you are instead looking for a method to stop sending video altogether check LocalMediaHandler.toggleVideo.
When specified forces video to be mute or unmute
Update constraints of local media. This feature is only available when the call has already been connected if "media-update" capability is present.
The requested media constraints
const audio = true;
const video = {
height: 256,
width: 256,
};
await call.setMediaConstraints({audio, video});
console.log("media updated");
Update the enabled local media. This feature is only available when the call has already been connected if "media-update" capability is present.
The requested media
await call.setMediaTypes({audio: true, video: false, screen: false});
console.log("media updated");
Enables or disables the video. If no parameter is specified it toggles current value.
Note that this method will imply a media renegotation because the video track will be added or removed from the RTCPeerConnection. As a consequence, remote participants will receive a change in their remote participants streams.
If specified forces video to be enabled or not
Provides access to methods for managing actions related to local media. Instances of this class are obtained calling Conference#localMediaHandler