问题
I'm trying to access the camera and microphone for a webview displayed in a SFSafariViewController.
I think I should respond to camera and microphone access requests made by the browser but I can't find a way to do it.
On Android we have an override in WebChromeClient to do exactly that:
public override void OnPermissionRequest(PermissionRequest request)
{
request.Grant(new String[] { PermissionRequest.ResourceAudioCapture, PermissionRequest.ResourceVideoCapture });
}
Do I have any chance to no being forced to fallback to using Safari Directly instead of SFSafariViewController?
Thanks in advance.
来源:https://stackoverflow.com/questions/61681959/sfsafariviewcontroller-handling-permissions-requests