sfsafariviewcontroller handling permissions requests

二次信任 提交于 2021-01-29 21:42:46

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!