DevicePermission
Class that represents permission states for the microphone, speaker, camera, and screen sharing.
Methods
requestAudioPermission
Promise<PermissionState>
requestAudioPermission()Requests the audio permission.
Returns a promise that resolves to a PermissionState.
Returns
type:
Promise<PermissionState>
requestCameraPermission
Promise<PermissionState>
requestCameraPermission()Requests the camera permission.
Calling this method can affect StreamManager.createVideoStream or getUserMedia.
Returns a promise that resolves to a PermissionState.
Returns
type:
Promise<PermissionState>
Props
camera
cameraWatchable property that allows getting the camera permission state.
microphone
microphoneWatchable property that allows getting the microphone permission state.
screenSharing
screenSharingWatchable property that allows getting the permission state for screen sharing.
speaker
speakerWatchable property that allows getting the speaker permission state.