New issue
Advanced search Search tips

Issue 752458 link

Starred by 16 users

Issue metadata

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



Sign in to add a comment

getUserMedia does not work in the WKWebview

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

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.


 
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.
Labels: Hotlist-Interop
Labels: Hotlist-Radar-Filed
>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?
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...
This is the link to radar: http://www.openradar.me/33571214

(Not that it helps much as there are no comments and no status)
Thank you, Thorsten. It is helpful.
Issue 862740 has been merged into this issue.
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.

Cc: ajuma@chromium.org

Comment 15 by eugene...@chromium.org, Oct 15 (3 days ago)

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

Sign in to add a comment