WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
176349
getUserMedia fails with OverconstrainedError for { video: { width: 320 } }
https://bugs.webkit.org/show_bug.cgi?id=176349
Summary
getUserMedia fails with OverconstrainedError for { video: { width: 320 } }
Andrew Morris
Reported
2017-09-04 22:38:15 PDT
This constraint: { video: { width: 320 } } Should be interpreted as width is ideally 320, it doesn't have to be exact. But Safari says this is overconstrained even though it can do e.g. 640x480 which would satisfy it. In fact being explicit about ideal fails in the same way: { video: { width: { ideal: 320 } } } Tested on Sierra + Safari Beta, Sierra + Safari Tech Preview 38, and iOS beta 9 + Safari.
Attachments
Add attachment
proposed patch, testcase, etc.
Adam
Comment 1
2017-11-21 15:48:06 PST
This seems to be resolved now actually. Can't reproduce this issue anymore.
Ben
Comment 2
2017-12-02 06:55:12 PST
GUM with video constraints still fails on iOS 11.2.
MH
Comment 3
2017-12-07 13:42:57 PST
I confirm this bug. There is test pen
https://codepen.io/hejral/pen/eeaKrx?editors=1011
which works, and another which do not
https://codepen.io/hejral/pen/RjzovG?editors=1011
And yes, with "playsinline" this works also for iPhone ;-) With no playsinline this works everywhere else. I must agree with comment "The fact that you need to add playsinline is still a bug."
MH
Comment 4
2017-12-07 13:51:28 PST
WebRTC demo with | constraints = { video: { width:320,height:240 } } output is: mediaDevices: Error -> Invalid constraint see also:
https://bugs.webkit.org/show_bug.cgi?id=176843
Adam
Comment 5
2018-09-09 16:51:29 PDT
This is now only happening for me on iOS, not on Mac OS.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug