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>
requestPermissions
requestPermissions(options: RequestPermissionsOptions
): Promise<DevicesPermissionState>
Requests permissions for camera and audio devices.
Returns a promise that resolves to a DevicesPermissionState containing the permission states for camera, microphone, and speaker.
Parameters
options:
RequestPermissionsOptions
Returns
type:
Promise<DevicesPermissionState>
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.