Click or drag to resize

IPermissionHandlerOnRequestMediaAccessPermission Method

Version 110.0.300
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
Assembly:  CefSharp (in CefSharp.dll) Version: 110.0.300.0 (110.0.300.0)
Syntax
bool OnRequestMediaAccessPermission(
	IWebBrowser chromiumWebBrowser,
	IBrowser browser,
	IFrame frame,
	string requestingOrigin,
	MediaAccessPermissionType requestedPermissions,
	IMediaAccessCallback callback
)

Parameters

chromiumWebBrowser
Type: CefSharpIWebBrowser
The ChromiumWebBrowser control
browser
Type: CefSharpIBrowser
The browser object
frame
Type: CefSharpIFrame
The frame object
requestingOrigin
Type: SystemString
is the URL origin requesting permission.
requestedPermissions
Type: CefSharpMediaAccessPermissionType
is a combination of values that represent the requested permissions
callback
Type: CefSharpIMediaAccessCallback
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