<?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>229601</bug_id>
          
          <creation_ts>2021-08-26 23:51:34 -0700</creation_ts>
          <short_desc>Audio stutters when playing a m3u8 file during WebRTC conference</short_desc>
          <delta_ts>2024-09-10 10:57:23 -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>Media</component>
          <version>Safari 14</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 14</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sheng Yunzhou">yunzhou</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>jennykonamo</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1787960</commentid>
    <comment_count>0</comment_count>
    <who name="Sheng Yunzhou">yunzhou</who>
    <bug_when>2021-08-26 23:51:34 -0700</bug_when>
    <thetext>Hi,

We have encountered an issue that during a WebRTC conference, when a m3u8 format file is played using default &lt;video&gt; element, the beginning of the audio is stuttering for about 20 seconds, before it starts to play smoothly. The output of the video&apos;s sound is from top speaker.

However, if a mp4 format file is played, it&apos;s smooth from beginning without any stuttering. The output of the video&apos;s sound is from bottom loudspeaker.

If only a m3u8 format file is played without WebRTC conference, it plays smoothly.

Tested iOS versions:
- iPhone Xs Max on iOS 14.7.1
- iPad 7th Generation on iOS 14.7.1

To reproduce this issue:
- Start a WebRTC call with only yourself in it
- On the same page, play a video in m3u8 format, and verify if the audio stutters in the beginning

Sample app for issue reproduction: https://static.inspify.io/playground/ios_webrtc_audio/index.html
- Click on Join Meeting button
- Approve camera / microphone permission from public Jitsi
- No need to join conference room, while you can see your own video, play the video on top of the page
- Verify if audio is stuttering at the beginning</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1788790</commentid>
    <comment_count>1</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2021-08-30 23:24:39 -0700</bug_when>
    <thetext>Hi Sheng, have you tried on latest iOS 15 betas?
It seems to work for me there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1789220</commentid>
    <comment_count>2</comment_count>
    <who name="Sheng Yunzhou">yunzhou</who>
    <bug_when>2021-08-31 22:17:18 -0700</bug_when>
    <thetext>Hello Youenn, I&apos;ve just tried on iOS 15 on an iPad and the issue seems to be fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1790067</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-09-02 23:52:19 -0700</bug_when>
    <thetext>&lt;rdar://problem/82711412&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>