[Webkit-unassigned] [Bug 188360] New: mediaDevices in WKWebview is undefined

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 6 14:34:08 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=188360

            Bug ID: 188360
           Summary: mediaDevices in WKWebview is undefined
           Product: WebKit
           Version: Other
          Hardware: iPhone / iPad
                OS: Other
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mikehartington at gmail.com

Inside of WKWebview, mediaDevices and getUserMedia are not implemented, but are there in Webkit/Safari.


var videoTag = document.querySelector('video');
var getVideoStream = function() {
  navigator.mediaDevices
    .getUserMedia({ video: true })
    .then(streamRes => (videoTag.srcObject = streamRes));
};

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180806/ecdb235e/attachment.html>


More information about the webkit-unassigned mailing list