Private
_audioPrivate
Optional
_audioPrivate
_beforePrivate
_mediaPrivate
_mediaPrivate
_updatePrivate
_videoPrivate
Optional
_videoPrivate
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 list of available video input devices
Indicates if it is possible to change to a different camera
Indicates if video can be enabled or disabled
Private
devices$Readonly
emitterPrivate
forcePrivate
subscriptionReadonly
videoThe list of available audio output devices
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.
Return the media types configured for the call
Private
getReturns the local video stream
Mutes 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 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.
Change video resolution
const audio = true;
const video = {
height: 256,
width: 256,
};
await call.setMediaConstraints({audio, video});
console.log("media updated");
The requested media constraints
Update the enabled local media. This feature is only available when the call has already been connected if "media-update" capability is present.
Disable video
await call.setMediaTypes({audio: true, video: false, screen: false});
console.log("media updated");
The requested media
Shares the screen. This feature is only available if "screen-sharing" capability is present.
send screen if true, camera if false. If not specified it toggles from the last state.
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
Generated using TypeDoc
Provides access to methods for managing actions related to local media. Instances of this class are obtained calling getLocalMediaHandler
Events
videoStream
- Emitted every time videoStream changes.*
- Emitted every time a change that can affect to any property happens.