<?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>271305</bug_id>
          
          <creation_ts>2024-03-20 02:18:28 -0700</creation_ts>
          <short_desc>[iOS] audio level switches to VC level when starting microphone capture even if audioSession type is set to &apos;play-and-record&apos; before microphone capture</short_desc>
          <delta_ts>2024-04-02 23:00:03 -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>
          
          
          <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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="youenn fablet">youennf</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2022413</commentid>
    <comment_count>0</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2024-03-20 02:18:28 -0700</bug_when>
    <thetext>[iOS] audio level switches to VC level when starting microphone capture even if audioSession type is set to &apos;play-and-record&apos;

Repro steps:
1. Close Safari, set audio level to 50%
2. Load https://jsfiddle.net/63x57vnb/, click &apos;start microphone&apos;, grant microphone access and set audio level to 100%
3. Restart Safari and load https://jsfiddle.net/63x57vnb/
4. Audio level is at 50% (even though navigator.audioSession.type is set to &apos;play-and-record&apos;
5. Click &apos;play bunny&apos;, video should start playing
6. Verify audio level is still at 50%
7. Click on &apos;start microphone&apos;, grant microphone access
8. Verify audio level is now at 100%.

I would have expected audio level at step 4 (or maybe 6 since webkit might not have activated the audio session) to be at 100%</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2022414</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-03-20 02:18:41 -0700</bug_when>
    <thetext>&lt;rdar://problem/125073697&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2022415</commentid>
    <comment_count>2</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2024-03-20 02:18:54 -0700</bug_when>
    <thetext>This reproes for me on iOS 17.4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2025612</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-04-02 23:00:01 -0700</bug_when>
    <thetext>Committed 276988@main (2416ed8f257f): &lt;https://commits.webkit.org/276988@main&gt;

Reviewed commits have been landed. Closing PR #26607 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>