PermissionHandlerOnRequestMediaAccessPermission Method |
Version 112.3.0
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: 112.3.0.0 (112.3.0.0)
Syntax protected virtual bool OnRequestMediaAccessPermission(
IWebBrowser chromiumWebBrowser,
IBrowser browser,
IFrame frame,
string requestingOrigin,
MediaAccessPermissionType requestedPermissions,
IMediaAccessCallback callback
)
protected:
virtual 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