<?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>243075</bug_id>
          
          <creation_ts>2022-07-21 14:01:00 -0700</creation_ts>
          <short_desc>torch track constraint ignored on iOS</short_desc>
          <delta_ts>2024-08-07 11:04:31 -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>iPhone / iPad</rep_platform>
          <op_sys>iOS 15</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <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>262131</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Zach Rattner">zach</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>eric.carlson</cc>
    
    <cc>john.diaz</cc>
    
    <cc>shawnlee</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1885805</commentid>
    <comment_count>0</comment_count>
    <who name="Zach Rattner">zach</who>
    <bug_when>2022-07-21 14:01:00 -0700</bug_when>
    <thetext>As per MDN, MediaStreamTrack.applyConstraints should be supported on iOS 11+ - https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/applyConstraints 

But a basic demo works on Android but not iOS: https://codepen.io/adamrifai/pen/YLxjKa

Is there any way to get `torch` to work on iOS? If not, any plans to?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1887442</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-07-28 14:01:17 -0700</bug_when>
    <thetext>&lt;rdar://problem/97743066&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1887613</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Carlson">eric.carlson</who>
    <bug_when>2022-07-29 10:35:41 -0700</bug_when>
    <thetext>The `torch` constraint is part of the MediaStream Image Capture spec, which WebKit doesn&apos;t support yet - https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-torch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1888037</commentid>
    <comment_count>3</comment_count>
    <who name="Zach Rattner">zach</who>
    <bug_when>2022-08-01 02:40:16 -0700</bug_when>
    <thetext>Thanks Eric. Is any ETA available? Any other tickets I should follow?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2051068</commentid>
    <comment_count>4</comment_count>
    <who name="Zach Rattner">zach</who>
    <bug_when>2024-08-06 17:28:54 -0700</bug_when>
    <thetext>This appears to have surporisingly started to work on iOS 17.5.1 (not sure if it also worked earlier). Is it officially supported now?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2051095</commentid>
    <comment_count>5</comment_count>
    <who name="Zach Rattner">zach</who>
    <bug_when>2024-08-06 22:06:27 -0700</bug_when>
    <thetext>It looks like no one at Apple updated this ticket, but torch support was introduced to the codebase back in October: https://github.com/WebKit/WebKit/commit/9c0b105d80212675839a00325b58df55f408f1c0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2051189</commentid>
    <comment_count>6</comment_count>
    <who name="Eric Carlson">eric.carlson</who>
    <bug_when>2024-08-07 11:04:31 -0700</bug_when>
    <thetext>(In reply to Zach Rattner from comment #5)
&gt; It looks like no one at Apple updated this ticket, but torch support was
&gt; introduced to the codebase back in October:
&gt; https://github.com/WebKit/WebKit/commit/
&gt; 9c0b105d80212675839a00325b58df55f408f1c0

My apologies, I forgot to update this when I added support for torch!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>