[Webkit-unassigned] [Bug 178109] New: Support width and height contraints in getUserMedia API
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Oct 9 19:12:26 PDT 2017
https://bugs.webkit.org/show_bug.cgi?id=178109
Bug ID: 178109
Summary: Support width and height contraints in getUserMedia
API
Product: WebKit
Version: Safari 11
Hardware: PC
OS: iOS 11
Status: NEW
Severity: Normal
Priority: P2
Component: WebRTC
Assignee: webkit-unassigned at lists.webkit.org
Reporter: michael.heuberger at binarykitchen.com
CC: youennf at gmail.com
It seems the getUserMedia API you recently have implemented does not support the width nor height constraints yet:
navigator.mediaDevices.getUserMedia(constraints)
throws an error when you have for example this constraint in the JSON:
constraints.video.width = 360
This forces me to code a special routine for Safari only, see this if-else block:
https://github.com/binarykitchen/videomail-client/blob/develop/src/wrappers/visuals/recorder.js#L521
Very easy to reproduce. Clone this repo, comment out that if-else block and load the page on Safari. An "Invalid Constraints" error will come up.
Thanks!
--
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/20171010/483cc752/attachment.html>
More information about the webkit-unassigned
mailing list