Rate this page:

DevicePermission

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

Methods

requestAudioPermission

Copy URL
requestAudioPermission(): 

Promise<PermissionState>

Requests the audio permission.

Returns a promise that resolves to a PermissionState.

Returns

requestCameraPermission

Copy URL
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

Props

camera

Copy URL
camera: 

ReadonlyWatchable<PermissionState>

Watchable property that allows getting the camera permission state.

microphone

Copy URL
microphone: 

ReadonlyWatchable<PermissionState>

Watchable property that allows getting the microphone permission state.

screenSharing

Copy URL
screenSharing: 

ReadonlyWatchable<PermissionState>

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

speaker

Copy URL
speaker: 

ReadonlyWatchable<PermissionState>

Watchable property that allows getting the speaker permission state.