Click or drag to resize

PermissionHandler.OnRequestMediaAccessPermission Method

Version 108.4.130
Called when a page requests permission to access media. With the Chrome runtime, default handling will display the permission request UI.With the Alloy runtime, default handling will deny the request.This method will not be called if the "--enable-media-stream" command-line switch is used to grant all permissions.

Namespace:  CefSharp.Handler
Assembly:  CefSharp (in CefSharp.dll) Version: 108.4.130.0 (108.4.130.0)
Syntax
protected virtual bool OnRequestMediaAccessPermission(
	IWebBrowser chromiumWebBrowser,
	IBrowser browser,
	IFrame frame,
	string requestingOrigin,
	MediaAccessPermissionType requestedPermissions,
	IMediaAccessCallback callback
)

Parameters

chromiumWebBrowser
Type: CefSharp.IWebBrowser
The ChromiumWebBrowser control
browser
Type: CefSharp.IBrowser
The browser object
frame
Type: CefSharp.IFrame
The frame object
requestingOrigin
Type: System.String
is the URL origin requesting permission.
requestedPermissions
Type: CefSharp.MediaAccessPermissionType
is a combination of values that represent the requested permissions
callback
Type: CefSharp.IMediaAccessCallback
Callback interface used for asynchronous continuation of media access.

Return Value

Type: Boolean
Return true and call CefMediaAccessCallback methods either in this method or at a later time to continue or cancel the request. Return false to proceed with default handling.
See Also