IPermissionHandlerOnRequestMediaAccessPermission Method |
Version 111.2.70
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: 111.2.70.0 (111.2.70.0)
Syntax bool OnRequestMediaAccessPermission(
IWebBrowser chromiumWebBrowser,
IBrowser browser,
IFrame frame,
string requestingOrigin,
MediaAccessPermissionType requestedPermissions,
IMediaAccessCallback callback
)
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:
BooleanReturn 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