<?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>248054</bug_id>
          
          <creation_ts>2022-11-17 14:17:46 -0800</creation_ts>
          <short_desc>[Cocoa] Use AVCaptureDeviceDiscoverySession for camera discovery</short_desc>
          <delta_ts>2024-03-27 09:00:56 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=250142</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>248245</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Carlson">eric.carlson</reporter>
          <assigned_to name="Eric Carlson">eric.carlson</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>moritz.zimmermann</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1913274</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Carlson">eric.carlson</who>
    <bug_when>2022-11-17 14:17:46 -0800</bug_when>
    <thetext>Use AVCaptureDeviceDiscoverySession for camera discovery instead of AVCaptureDevice</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1913282</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Carlson">eric.carlson</who>
    <bug_when>2022-11-17 14:56:10 -0800</bug_when>
    <thetext>rdar://101919809</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1913284</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Carlson">eric.carlson</who>
    <bug_when>2022-11-17 15:01:17 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/6604</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1913527</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-11-18 12:52:20 -0800</bug_when>
    <thetext>Committed 256849@main (460662e8590c): &lt;https://commits.webkit.org/256849@main&gt;

Reviewed commits have been landed. Closing PR #6604 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1914152</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2022-11-22 12:53:59 -0800</bug_when>
    <thetext>Re-opened since this is blocked by bug 248245</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1915066</commentid>
    <comment_count>5</comment_count>
    <who name="Eric Carlson">eric.carlson</who>
    <bug_when>2022-11-28 12:35:08 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/6872</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1915164</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-11-28 16:50:11 -0800</bug_when>
    <thetext>Committed 257094@main (358c50c87d32): &lt;https://commits.webkit.org/257094@main&gt;

Reviewed commits have been landed. Closing PR #6872 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1915167</commentid>
    <comment_count>7</comment_count>
    <who name="Eric Carlson">eric.carlson</who>
    <bug_when>2022-11-28 16:54:41 -0800</bug_when>
    <thetext>*** Bug 247737 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1915241</commentid>
    <comment_count>8</comment_count>
    <who name="Mo">moritz.zimmermann</who>
    <bug_when>2022-11-29 00:36:51 -0800</bug_when>
    <thetext>Could you verify if this change will allow access to other back cameras than just the default (wide-angle) on multi-camera iOS devices?

For example these devices:
- builtInDualWideCamera: https://developer.apple.com/documentation/avfoundation/avcapturedevice/devicetype/3377620-builtindualwidecamera
- https://developer.apple.com/documentation/avfoundation/avcapturedevice/devicetype/3377622-builtinultrawidecamera</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1915798</commentid>
    <comment_count>9</comment_count>
    <who name="Eric Carlson">eric.carlson</who>
    <bug_when>2022-11-30 17:58:38 -0800</bug_when>
    <thetext>(In reply to Mo from comment #8)
&gt; Could you verify if this change will allow access to other back cameras than
&gt; just the default (wide-angle) on multi-camera iOS devices?
&gt; 
&gt; For example these devices:
&gt; - builtInDualWideCamera:
&gt; https://developer.apple.com/documentation/avfoundation/avcapturedevice/
&gt; devicetype/3377620-builtindualwidecamera
&gt; -
&gt; https://developer.apple.com/documentation/avfoundation/avcapturedevice/
&gt; devicetype/3377622-builtinultrawidecamera

This change exposes each of the physical cameras on a iOS device, which includes the ultra-wide angle camera on devices that have one.

It does not expose the built-in &quot;dual wide&quot; or &quot;triple wide&quot; virtual cameras that automatically switch between physical cameras when zoom factor, light level, and focus position allow.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1915849</commentid>
    <comment_count>10</comment_count>
    <who name="Mo">moritz.zimmermann</who>
    <bug_when>2022-12-01 00:05:09 -0800</bug_when>
    <thetext>Thank you very much, this is invaluable to us!

Would you know if support for iOS virtual cameras is planned for a future release?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1916106</commentid>
    <comment_count>11</comment_count>
    <who name="Eric Carlson">eric.carlson</who>
    <bug_when>2022-12-01 16:19:35 -0800</bug_when>
    <thetext>(In reply to Mo from comment #10)
&gt; Thank you very much, this is invaluable to us!
&gt; 
&gt; Would you know if support for iOS virtual cameras is planned for a future
&gt; release?

Yes, we are planning to investigate adding support for the virtual cameras.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1924102</commentid>
    <comment_count>12</comment_count>
    <who name="Eric Carlson">eric.carlson</who>
    <bug_when>2023-01-09 09:31:26 -0800</bug_when>
    <thetext>(In reply to Eric Carlson from comment #11)
&gt; (In reply to Mo from comment #10)
&gt; &gt; Thank you very much, this is invaluable to us!
&gt; &gt; 
&gt; &gt; Would you know if support for iOS virtual cameras is planned for a future
&gt; &gt; release?
&gt; 
&gt; Yes, we are planning to investigate adding support for the virtual cameras.

https://bugs.webkit.org/show_bug.cgi?id=250142</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2024201</commentid>
    <comment_count>13</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2024-03-27 09:00:56 -0700</bug_when>
    <thetext>*** Bug 248106 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>