<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>176349</bug_id>
          
          <creation_ts>2017-09-04 22:38:15 -0700</creation_ts>
          <short_desc>getUserMedia fails with OverconstrainedError for { video: { width: 320 } }</short_desc>
          <delta_ts>2018-09-09 16:51:29 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebRTC</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrew Morris">andrew</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>adam</cc>
    
    <cc>ben.browitt</cc>
    
    <cc>martin.hejral</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1345343</commentid>
    <comment_count>0</comment_count>
    <who name="Andrew Morris">andrew</who>
    <bug_when>2017-09-04 22:38:15 -0700</bug_when>
    <thetext>This constraint:

{ video: { width: 320 } }

Should be interpreted as width is ideally 320, it doesn&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1374107</commentid>
    <comment_count>1</comment_count>
    <who name="Adam">adam</who>
    <bug_when>2017-11-21 15:48:06 -0800</bug_when>
    <thetext>This seems to be resolved now actually. Can&apos;t reproduce this issue anymore.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1377281</commentid>
    <comment_count>2</comment_count>
    <who name="Ben">ben.browitt</who>
    <bug_when>2017-12-02 06:55:12 -0800</bug_when>
    <thetext>GUM with video constraints still fails on iOS 11.2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1379263</commentid>
    <comment_count>3</comment_count>
    <who name="MH">martin.hejral</who>
    <bug_when>2017-12-07 13:42:57 -0800</bug_when>
    <thetext>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 &quot;playsinline&quot; this works also for iPhone ;-)
With no playsinline this works everywhere else.

I must agree with comment &quot;The fact that you need to add playsinline is still a bug.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1379268</commentid>
    <comment_count>4</comment_count>
    <who name="MH">martin.hejral</who>
    <bug_when>2017-12-07 13:51:28 -0800</bug_when>
    <thetext>WebRTC demo with | constraints = { video: { width:320,height:240 } }

output is:

mediaDevices: Error -&gt; Invalid constraint

see also:

https://bugs.webkit.org/show_bug.cgi?id=176843</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1458057</commentid>
    <comment_count>5</comment_count>
    <who name="Adam">adam</who>
    <bug_when>2018-09-09 16:51:29 -0700</bug_when>
    <thetext>This is now only happening for me on iOS, not on Mac OS.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>