Rate this page:

DevicePermission

Class that represents permission states for the microphone, speaker, camera, and screen sharing.

Methods

requestAudioPermission

Copy URL

Promise<PermissionState>

requestAudioPermission()

Requests the audio permission.

Returns a promise that resolves to a PermissionState.

Returns

requestCameraPermission

Copy URL

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

Props

camera

Copy URL
 camera

Watchable property that allows getting the camera permission state.

microphone

Copy URL
 microphone

Watchable property that allows getting the microphone permission state.

screenSharing

Copy URL
 screenSharing

Watchable property that allows getting the permission state for screen sharing.

speaker

Copy URL
 speaker

Watchable property that allows getting the speaker permission state.