cef_permission_handler_t.on_request_media_access_permission

Called when a page requests permission to access media. |requesting_origin| is the URL origin requesting permission. |requested_permissions| is a combination of values from cef_media_access_permission_types_t that represent the requested permissions. Return true (1) and call cef_media_access_callback_t functions either in this function or at a later time to continue or cancel the request. Return false (0) to proceed with default handling. With the Chrome runtime, default handling will display the permission request UI. With the Alloy runtime, default handling will deny the request. This function will not be called if the "--enable-media-stream" command-line switch is used to grant all permissions.

struct cef_permission_handler_t
extern (System)
int function(cef_permission_handler_t* self, cef_browser_t* browser, cef_frame_t* frame, const(cef_string_t)* requesting_origin, uint requested_permissions, cef_media_access_callback_t* callback) nothrow on_request_media_access_permission;

Meta