<?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>196214</bug_id>
          
          <creation_ts>2019-03-25 14:07:46 -0700</creation_ts>
          <short_desc>getUserMedia framerate unusable under low light in iOS 12.2</short_desc>
          <delta_ts>2019-06-02 09:31:35 -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 12</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dag-Inge Aas">daginge</reporter>
          <assigned_to name="youenn fablet">youennf</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>ggaren</cc>
    
    <cc>ibc</cc>
    
    <cc>jhenderson2177</cc>
    
    <cc>jonlee</cc>
    
    <cc>kevinday</cc>
    
    <cc>michael</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1521003</commentid>
    <comment_count>0</comment_count>
    <who name="Dag-Inge Aas">daginge</who>
    <bug_when>2019-03-25 14:07:46 -0700</bug_when>
    <thetext>Since upgrading to iOS 12.2, I tested the frame rate of getUserMedia by going to https://webrtc.github.io/samples/src/content/getusermedia/gum/. The framerate is horrible to the point of unusable, as you can no longer see the mouth move when talking, and moving the camera makes an interesting long-tail effect of the previous image. I&apos;ve attached videos showing the getUserMedia sample page with the problem, and the native camera app, which shows no sign of this issue.

getUserMedia on WebRTC samples
https://photos.app.goo.gl/1RnJQ7SFhG6rqSBQ6

Actual flipped camera framerate in Camera app
https://photos.app.goo.gl/1CmBPr1ho3wyNP579

I have tried killing the Safari app, fully rebooting my phone, and anything else I can think of, and the problem remains.

What&apos;s worse, this is not only a local rendering issue, it&apos;s also an issue when sending the video to the other side (using H264 too). Audio is not affected luckily.

As it stands now, using getUserMedia for anything except taking perfectly stationary images will not work, and it is completely breaking for any video experience in the browser.

My phone&apos;s about page shows:
Software version: 12.2 (16E227)
Model name: iPhone X
Model version: MQAD2QN/A (A1901)

Any help would be appreciated in working around this problem, as this will completely break Confrere for patients/physicians when they upgrade to iOS 12.2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1521019</commentid>
    <comment_count>1</comment_count>
    <who name="Dag-Inge Aas">daginge</who>
    <bug_when>2019-03-25 14:22:22 -0700</bug_when>
    <thetext>Able to replicate this on my iPad Pro as well.

Software version: 16E227
Model name: iPad Pro 10.5 inch
Model number: MQDW2KN/A (A1701)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1521023</commentid>
    <comment_count>2</comment_count>
    <who name="Dag-Inge Aas">daginge</who>
    <bug_when>2019-03-25 14:25:33 -0700</bug_when>
    <thetext>Interestingly, the problem fixes itself (as does the resolution (??)) if I go to the home screen and open Safari again.

To repro:
1. Go to https://webrtc.github.io/samples/src/content/getusermedia/gum/
2. Click &quot;open camera&quot;
3. Observe that frame rate is slow
4. Go to the home screen by swiping up
5.Wait at least 2 seconds
6. Open Safari again
7. Observe that the resolution has changed (black borders around the video frame), and the video is now fast again (as fast as native camera app)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1521032</commentid>
    <comment_count>3</comment_count>
    <who name="Dag-Inge Aas">daginge</who>
    <bug_when>2019-03-25 14:33:42 -0700</bug_when>
    <thetext>Problem also persists with all standard resolutions tried here: https://webrtc.github.io/samples/src/content/getusermedia/resolution/. Workaround by going to the home screen and back seems to fix the issue (and changes the aspect ration) for all resolutions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1521061</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-03-25 15:21:28 -0700</bug_when>
    <thetext>&lt;rdar://problem/49232193&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1521073</commentid>
    <comment_count>5</comment_count>
    <who name="Iñaki Baz">ibc</who>
    <bug_when>2019-03-25 15:47:20 -0700</bug_when>
    <thetext>I&apos;ve seen this issue in Macbook Pro OSX latest versions and Safari Tech latest versions. &quot;Sometimes&quot; it does not happen. No idea what it depends on, but most times it happens.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1521235</commentid>
    <comment_count>6</comment_count>
    <who name="Dag-Inge Aas">daginge</who>
    <bug_when>2019-03-26 01:44:24 -0700</bug_when>
    <thetext>As of this morning I&apos;m unable to replicate the issue as seen in the videos in either of my devices. None of the devices have been shut off during the night.

https://photos.app.goo.gl/4hmARduvZd9jrFND9

Aspect ratio still changes when going to the home screen and back though, but at least the horrible lag isn&apos;t there anymore.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1521691</commentid>
    <comment_count>7</comment_count>
    <who name="Dag-Inge Aas">daginge</who>
    <bug_when>2019-03-27 08:45:36 -0700</bug_when>
    <thetext>I FINALLY FIGURED IT OUT!

iOS 12.2 behaves badly in _low light_ scenarios. That&apos;s why it didn&apos;t work in the evening with poor lighting conditions, and worked well in daylight when I tested it again.

https://photos.app.goo.gl/akjHTfQ6oAZtfwCW8

See attached video showing extremely poor performance in low light, then going to home screen and back magically fixes the problem (and changes aspect ratio). 

Moving to a better lit scenario also fixes the problem. This was not a problem in previous versions.

Do I get a cake now? :D</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1522018</commentid>
    <comment_count>8</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2019-03-28 01:25:02 -0700</bug_when>
    <thetext>&gt; Do I get a cake now? :D

Thanks!
I was also able to repro on iOS and somehow on MacOS as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1522020</commentid>
    <comment_count>9</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2019-03-28 02:08:06 -0700</bug_when>
    <thetext>The call to setActiveVideoMinFrameDuration/setActiveVideoMaxFrameDuration in AVVideoCaptureSource::setSizeAndFrameRateWithPreset might actually trigger this behavior.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1522183</commentid>
    <comment_count>10</comment_count>
    <who name="JH">jhenderson2177</who>
    <bug_when>2019-03-28 12:51:11 -0700</bug_when>
    <thetext>I&apos;m able to reproduce this on my iPhone X (MQCN2LL/A A1865) running iOS 12.2 (16E227) if I don&apos;t have perfect lighting.

Another workaround is to request &quot;frameRate: 60&quot; in the constraints and the problem goes away, regardless of the lighting quality. Lower frameRate values, or not specifying one, and the problem still happens.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1533987</commentid>
    <comment_count>11</comment_count>
      <attachid>369305</attachid>
    <who name="youenn fablet">youennf</who>
    <bug_when>2019-05-07 11:21:50 -0700</bug_when>
    <thetext>Created attachment 369305
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1534033</commentid>
    <comment_count>12</comment_count>
      <attachid>369305</attachid>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2019-05-07 12:19:05 -0700</bug_when>
    <thetext>Comment on attachment 369305
Patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1534104</commentid>
    <comment_count>13</comment_count>
      <attachid>369305</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-05-07 14:04:15 -0700</bug_when>
    <thetext>Comment on attachment 369305
Patch

Clearing flags on attachment: 369305

Committed r245032: &lt;https://trac.webkit.org/changeset/245032&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1534105</commentid>
    <comment_count>14</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-05-07 14:04:17 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1534107</commentid>
    <comment_count>15</comment_count>
      <attachid>369305</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2019-05-07 14:06:46 -0700</bug_when>
    <thetext>Comment on attachment 369305
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=369305&amp;action=review

&gt; Source/WebCore/platform/mediastream/mac/AVVideoCaptureSource.mm:332
&gt; +            if (requestedFrameRate &lt; frameRateRange.minFrameRate)
&gt; +                requestedFrameRate = frameRateRange.minFrameRate;
&gt; +            else if (requestedFrameRate &gt; frameRateRange.maxFrameRate)
&gt; +                requestedFrameRate = frameRateRange.maxFrameRate;

Use clampTo()?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1534423</commentid>
    <comment_count>16</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2019-05-08 12:24:41 -0700</bug_when>
    <thetext>*** Bug 197703 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1534425</commentid>
    <comment_count>17</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2019-05-08 12:26:25 -0700</bug_when>
    <thetext>(In reply to Simon Fraser (smfr) from comment #15)
&gt; Comment on attachment 369305 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=369305&amp;action=review
&gt; 
&gt; &gt; Source/WebCore/platform/mediastream/mac/AVVideoCaptureSource.mm:332
&gt; &gt; +            if (requestedFrameRate &lt; frameRateRange.minFrameRate)
&gt; &gt; +                requestedFrameRate = frameRateRange.minFrameRate;
&gt; &gt; +            else if (requestedFrameRate &gt; frameRateRange.maxFrameRate)
&gt; &gt; +                requestedFrameRate = frameRateRange.maxFrameRate;
&gt; 
&gt; Use clampTo()?

Makes sense, will fix it in bug 197704.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1534441</commentid>
    <comment_count>18</comment_count>
    <who name="micsun-al">michael</who>
    <bug_when>2019-05-08 12:58:53 -0700</bug_when>
    <thetext>(In reply to JH from comment #10)
&gt; I&apos;m able to reproduce this on my iPhone X (MQCN2LL/A A1865) running iOS 12.2
&gt; (16E227) if I don&apos;t have perfect lighting.
&gt; 
&gt; Another workaround is to request &quot;frameRate: 60&quot; in the constraints and the
&gt; problem goes away, regardless of the lighting quality. Lower frameRate
&gt; values, or not specifying one, and the problem still happens.

Although the frame rate problem seems to go away with this workaround, the black bars seem to still be an issue.  I wonder if the patches fix the black bars too?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1534453</commentid>
    <comment_count>19</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2019-05-08 13:22:50 -0700</bug_when>
    <thetext>(In reply to micsun-al from comment #18)
&gt; (In reply to JH from comment #10)
&gt; &gt; I&apos;m able to reproduce this on my iPhone X (MQCN2LL/A A1865) running iOS 12.2
&gt; &gt; (16E227) if I don&apos;t have perfect lighting.
&gt; &gt; 
&gt; &gt; Another workaround is to request &quot;frameRate: 60&quot; in the constraints and the
&gt; &gt; problem goes away, regardless of the lighting quality. Lower frameRate
&gt; &gt; values, or not specifying one, and the problem still happens.
&gt; 
&gt; Although the frame rate problem seems to go away with this workaround, the
&gt; black bars seem to still be an issue.  I wonder if the patches fix the black
&gt; bars too?

That is a separate issue, I filed https://bugs.webkit.org/show_bug.cgi?id=197707.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1541084</commentid>
    <comment_count>20</comment_count>
    <who name="Dag-Inge Aas">daginge</who>
    <bug_when>2019-06-02 06:53:07 -0700</bug_when>
    <thetext>This issue is not fixed for me on iOS 12.3.1 using Safari 12.1.1. I can still reliably reproduce this in low light on https://webrtc.github.io/samples/src/content/getusermedia/gum/ on my iPhone X.

Let me know if you need additional debugging information.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1541085</commentid>
    <comment_count>21</comment_count>
    <who name="Dag-Inge Aas">daginge</who>
    <bug_when>2019-06-02 06:58:49 -0700</bug_when>
    <thetext>See difference between native camera and webrtc:

native: https://share.icloud.com/photos/0oKCLxUqdxlPfFSjxDg7eGwPQ
webrtc: https://share.icloud.com/photos/0hYZ4piriFK45trA0hk_gPJ9g

These were recorded right after one another in the exact same lighting conditions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1541105</commentid>
    <comment_count>22</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2019-06-02 09:31:35 -0700</bug_when>
    <thetext>12.3.1 doesn&apos;t have the fix for this bug. Fixing a bug in bugzilla does not correspond with when it&apos;s available in an OS update.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>369305</attachid>
            <date>2019-05-07 11:21:50 -0700</date>
            <delta_ts>2019-05-07 14:04:15 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-196214-20190507112149.patch</filename>
            <type>text/plain</type>
            <size>4073</size>
            <attacher name="youenn fablet">youennf</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjQ0OTYxCmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggMTYwZDU1ODFlYmIwNjky
ZjE3Yjg1NjljZDZiNDhjZjg0NDg3NGEyMS4uM2RhZDVlZGZjYWE5YmRhNzdlZmU3NWQzZjE4MzQw
MDFkY2ZmODM4NiAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDI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