New issue
Advanced search Search tips
Starred by 24 users

Issue metadata

Status: ExternalDependency
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: iOS
Pri: 3
Type: Compat



Sign in to add a comment
link

Issue 752458: getUserMedia does not work in the WKWebview

Reported by jif@chromium.org, Aug 4 2017 Project Member

Issue description

An 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.
 

Comment 1 by eugene...@chromium.org, Aug 4 2017

Cc: danyao@chromium.org
Labels: -Type-Bug Type-Compat

Comment 3 by jif@chromium.org, 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.

Comment 4 by jif@chromium.org, Aug 11 2017

 Issue 753437  has been merged into this issue.

Comment 5 by danyao@chromium.org, Nov 15 2017

Cc: linds...@chromium.org guidou@chromium.org
 Issue 783220  has been merged into this issue.

Comment 6 by phistuck@chromium.org, Nov 15 2017

Labels: Hotlist-Interop

Comment 7 by pinkerton@chromium.org, Nov 15 2017

Labels: Hotlist-Radar-Filed

Comment 8 by maksim.l...@gmail.com, 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?

Comment 9 by danyao@chromium.org, 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...

Comment 10 by thorsten...@gmail.com, 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)

Comment 11 by eugene...@chromium.org, Jan 4 2018

Thank you, Thorsten. It is helpful.

Comment 12 by eugene...@chromium.org, Jul 12 2018

Issue 862740 has been merged into this issue.

Comment 13 by stephane...@gmail.com, 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.

Comment 14 by danyao@chromium.org, Sep 19

Cc: ajuma@chromium.org

Comment 15 by eugene...@chromium.org, Oct 15

Cc: mard...@chromium.org
 Issue 895075  has been merged into this issue.

Comment 16 by moh.shr...@gmail.com, Oct 26

long time waiting for this feature..
any change to support it?!!

Comment 17 by eugene...@chromium.org, Oct 26

There were no changes in WebKit to support this in WKWebView.

Comment 18 by tsteiner@google.com, Dec 8

Cc: tsteiner@google.com

Comment 19 by gambard@chromium.org, Dec 28

 Issue 917797  has been merged into this issue.

Comment 20 by eugene...@chromium.org, Jan 2

Components: Mobile>iOSWeb>WebPlatform

Comment 21 by stsm...@gmail.com, Feb 14

Anyone have any updates or know how to we can all collectively request from apple?

Comment 22 by ajuma@chromium.org, Feb 14

The best way to let Apple know that there's demand for this feature is to file a Radar at bugreport.apple.com.

Comment 23 by tsteiner@google.com, Feb 14

For a related issue, see https://bugs.webkit.org/show_bug.cgi?id=185448 about getUserMedia not working in apps added to home screen (aka. running in "Web.app").

Sign in to add a comment