WebKit.WebView:camera-capture-state
Description: Reference for property WebKit.WebView:camera-capture-state

### Property

# WebKit WebView:camera-capture-state

since: 2.34

#### Declaration

    property camera-capture-state: WebKit.MediaCaptureState [ read, write ]

#### Description [src]

Capture state of the camera device. Whenever the user grants a media-request sent by the web page, requesting video capture capabilities (`navigator.mediaDevices.getUserMedia({video: true})`) this property will be set to `WEBKIT_MEDIA_CAPTURE_STATE_ACTIVE`.

The application can monitor this property and provide a visual indicator allowing to optionally deactivate or mute the capture device by setting this property respectively to `WEBKIT_MEDIA_CAPTURE_STATE_NONE` or `WEBKIT_MEDIA_CAPTURE_STATE_MUTED`.

If the capture state of the device is set to `WEBKIT_MEDIA_CAPTURE_STATE_NONE` the web-page can still re-request the permission to the user. Permission desision caching is left to the application.

Type: | `WebKitMediaCaptureState`
Available since: | 2.34

Default value | WEBKIT_MEDIA_CAPTURE_STATE_NONE
Getter method | `webkit_web_view_get_camera_capture_state()`
Setter method | `webkit_web_view_set_camera_capture_state()`

#### Flags

Readable | yes
Writable | yes
Construct | no
Construct only | no