PermissionHandlerOnRequestMediaAccessPermission Method |
Version 130.1.90
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.HandlerAssembly: CefSharp (in CefSharp.dll) Version: 129.0.110.0 (129.0.110.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 IWebBrowser
- The ChromiumWebBrowser control
- browser IBrowser
- The browser object
- frame IFrame
- The frame object
- requestingOrigin String
- is the URL origin requesting permission.
- requestedPermissions MediaAccessPermissionType
- is a combination of values that represent the requested permissions
- callback IMediaAccessCallback
- Callback interface used for asynchronous continuation of media access.
Return Value
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