Method

WebKitWebViewhas_protected_media

unstable since: 2.56

Declaration [src]

gboolean
webkit_web_view_has_protected_media (
  WebKitWebView* web_view
)

Description [src]

Gets the value of the WebKitWebView:has-protected-media property.

You can monitor when a page in a WebKitWebView may be presenting DRM-protected media by connecting to the notify::has-protected-media signal of web_view. This is useful when the application needs to keep protected content out of screenshots or recordings.

Available since: 2.56

Return value

Type: gboolean

TRUE if a page in web_view has a media element with MediaKeys attached or FALSE otherwise.