DevicePermission
Class that represents permission states for the microphone, speaker, camera, and screen sharing.
Methods
requestAudioPermission
requestAudioPermission(): Promise<PermissionState>
Requests the audio permission.
Returns a promise that resolves to a PermissionState.
Returns
type:
Promise<PermissionState>
requestCameraPermission
requestCameraPermission(): Promise<PermissionState>
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
camera:
Watchable property that allows getting the camera permission state.
microphone
microphone:
Watchable property that allows getting the microphone permission state.
screenSharing
screenSharing:
Watchable property that allows getting the permission state for screen sharing.
speaker
speaker:
Watchable property that allows getting the speaker permission state.