You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feature request / problem description
Every call to getUserMedia() from within a WKWebView instance will lead to a new permission popup requiring the user to allow/deny access to the camera and/or microphone. This is quite annoying from a user perspective.
Example use-case: I use an audio/video capable Home Assistant card to have an audio/video connection to my doorbell within HA lovelace UI.
Describe the solution you'd like
Implement the new delegate WKUIDelegate decideMediaCapturePermissionFor to handle getUserMedia() media capture permission requests so that the user does not get a permission prompt for camera/microphone with every call to getUserMedia() when loading or reloading a webpage from within an existing instance of WKWebView.
Feature request / problem description
Every call to
getUserMedia()from within a WKWebView instance will lead to a new permission popup requiring the user to allow/deny access to the camera and/or microphone. This is quite annoying from a user perspective.Example use-case: I use an audio/video capable Home Assistant card to have an audio/video connection to my doorbell within HA lovelace UI.
Describe the solution you'd like
Implement the new delegate
WKUIDelegate decideMediaCapturePermissionForto handlegetUserMedia()media capture permission requests so that the user does not get a permission prompt for camera/microphone with every call togetUserMedia()when loading or reloading a webpage from within an existing instance of WKWebView.Additional context
getUserMedia(): https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia