getUserMedia does not work in the WKWebview |
||||||
Issue descriptionAn important use case of WebRTC is the streaming of user media, which is done via navigator.mediaDevices.getUserMedia. navigator.mediaDevices is available in Safari, but not in the WKWebview. filed radar://33723040 about it.
,
Aug 4 2017
getUserMedia is currently exposed only through a private API: https://github.com/WebKit/webkit/blob/44a9044703b68567471ad01cb82fc27ce93362c7/Source/WebKit/UIProcess/API/Cocoa/WKUIDelegatePrivate.h#L75
,
Aug 11 2017
Apple's response: This bug has been closed as a Duplicate. The issue is being tracked under the original Bug ID# 29281220.
,
Aug 11 2017
Issue 753437 has been merged into this issue.
,
Nov 15 2017
,
Nov 15 2017
,
Nov 15 2017
,
Dec 6 2017
>This bug has been closed as a Duplicate. The issue is being tracked under the original Bug ID# 29281220. sorry if i'm asking an obvious question but where is this bug filed? i can't find it anywhere? is this apple's internal id? is there any more info on this btw?
,
Dec 6 2017
This bug was filed in radar, which is Apple's bug tracking system. Unfortunately Apple does not allow access to bugs filed in its system other than the original bug reporter. We don't have any information on when the blocking bug will be fixed...
,
Jan 4 2018
This is the link to radar: http://www.openradar.me/33571214 (Not that it helps much as there are no comments and no status)
,
Jan 4 2018
Thank you, Thorsten. It is helpful.
,
Jul 12
Issue 862740 has been merged into this issue.
,
Sep 19
I managed to re-enable the API, in the context of cordova-plugin-wkwebview-engine, by using the private WebKit function: void WKPreferencesSetMediaDevicesEnabled(WKPreferences* preferencesRef, bool enabled) Assuming you are using Objective C, to reproduce, you need 1. to declare this function, and 2 when you are setting up WKWebViewConfiguration, call it: 1. void WKPreferencesSetMediaDevicesEnabled(WKPreferences* preferencesRef, bool enabled); 2. WKWebViewConfiguration* configuration = [[WKWebViewConfiguration alloc] init]; ... WKPreferencesSetMediaDevicesEnabled(configuration.preferences, true); However, the call getUserMedia fails with the error "SecurityError: The operation is insecure.". I did not manage yet to work around it.
,
Sep 19
,
Oct 15
,
Oct 26
long time waiting for this feature.. any change to support it?!!
,
Oct 26
There were no changes in WebKit to support this in WKWebView.
,
Dec 8
,
Dec 28
Issue 917797 has been merged into this issue.
,
Jan 2
|
||||||
►
Sign in to add a comment |
||||||
Comment 1 by eugene...@chromium.org
, Aug 4 2017Labels: -Type-Bug Type-Compat