WebKitUserMediaPermissionRequest: WebKitGTK Reference Manual

## WebKitUserMediaPermissionRequest WebKitUserMediaPermissionRequest — A permission request for accessing user's audio/video devices. |

## Functions

gboolean | webkit_user_media_permission_is_for_audio_device ()
gboolean | webkit_user_media_permission_is_for_video_device ()
gboolean | webkit_user_media_permission_is_for_display_device ()

## Properties

gboolean | is-for-audio-device | Read
gboolean | is-for-video-device | Read

## Types and Values

struct | WebKitUserMediaPermissionRequest

## Object Hierarchy

        GObject
        ╰── WebKitUserMediaPermissionRequest

## Implemented Interfaces

WebKitUserMediaPermissionRequest implements WebKitPermissionRequest.

## Description

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.

## Functions

### webkit_user_media_permission_is_for_audio_device ()

    gboolean
    webkit_user_media_permission_is_for_audio_device
                                   (WebKitUserMediaPermissionRequest *request);

#### Parameters

request | a WebKitUserMediaPermissionRequest |

#### Returns

`TRUE` if access to an audio device was requested.

Since: 2.8

### webkit_user_media_permission_is_for_video_device ()

    gboolean
    webkit_user_media_permission_is_for_video_device
                                   (WebKitUserMediaPermissionRequest *request);

#### Parameters

request | a WebKitUserMediaPermissionRequest |

#### Returns

`TRUE` if access to a video device was requested.

Since: 2.8

### webkit_user_media_permission_is_for_display_device ()

    gboolean
    webkit_user_media_permission_is_for_display_device
                                   (WebKitUserMediaPermissionRequest *request);

#### Parameters

request | a WebKitUserMediaPermissionRequest |

#### Returns

`TRUE` if access to a display device was requested.

Since: 2.34

## Types and Values

### struct WebKitUserMediaPermissionRequest

    struct WebKitUserMediaPermissionRequest;

## Property Details

### The `“is-for-audio-device”` property

      “is-for-audio-device”      gboolean

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

Owner: WebKitUserMediaPermissionRequest

Flags: Read

Default value: FALSE

### The `“is-for-video-device”` property

      “is-for-video-device”      gboolean

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

Owner: WebKitUserMediaPermissionRequest

Flags: Read

Default value: FALSE

## See Also

WebKitPermissionRequest, WebKitWebView