UserMediaPermissionRequest

Added in version 2.8.

class UserMediaPermissionRequest(**properties: Any)

Superclasses: Object

Implemented Interfaces: PermissionRequest

A permission request for accessing user’s audio/video devices.

WebKitUserMediaPermissionRequest represents a request for permission to decide whether WebKit should be allowed to access the user’s audio and video source devices when requested through the getUserMedia API.

When a WebKitUserMediaPermissionRequest is not handled by the user, it is denied by default.

Properties

class UserMediaPermissionRequest
props.is_for_audio_device: bool

Whether the media device to which the permission was requested has a microphone or not.

Added in version 2.8.

props.is_for_video_device: bool

Whether the media device to which the permission was requested has a video capture capability or not.

Added in version 2.8.