<?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>236967</bug_id>
          
          <creation_ts>2022-02-21 04:22:14 -0800</creation_ts>
          <short_desc>Unexpected stop playing an audio track on a website</short_desc>
          <delta_ts>2022-03-19 11:28:06 -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 15</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>macOS 12</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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="Nick">hiatal-tab-0t</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>eric.carlson</cc>
    
    <cc>jer.noble</cc>
    
    <cc>smoley</cc>
    
    <cc>supersonicandtails</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1844161</commentid>
    <comment_count>0</comment_count>
    <who name="Nick">hiatal-tab-0t</who>
    <bug_when>2022-02-21 04:22:14 -0800</bug_when>
    <thetext>If start play Audio on any website using JavaScript, for example:

    let el = document.querySelector(&quot;.player-controls__btn_play&quot;);
    var evObj = document.createEvent(&apos;Events&apos;);
    evObj.initEvent(&quot;click&quot;, true, false);
    el.dispatchEvent(evObj);

or

    document.querySelector(&quot;.player-controls__btn_play&quot;).click();


or using websites API


    externalAPI.togglePause();


playback stops after 20-80 seconds (media tab must be inactive).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1845368</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-02-23 15:40:44 -0800</bug_when>
    <thetext>&lt;rdar://problem/89382571&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1849717</commentid>
    <comment_count>2</comment_count>
    <who name="Smoley">smoley</who>
    <bug_when>2022-03-09 09:34:19 -0800</bug_when>
    <thetext>Thanks for filing, can you please link a reduced test case here?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1849744</commentid>
    <comment_count>3</comment_count>
      <attachid>454262</attachid>
    <who name="Nick">hiatal-tab-0t</who>
    <bug_when>2022-03-09 10:23:36 -0800</bug_when>
    <thetext>Created attachment 454262
Test case</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>454262</attachid>
            <date>2022-03-09 10:23:36 -0800</date>
            <delta_ts>2022-03-09 10:23:36 -0800</delta_ts>
            <desc>Test case</desc>
            <filename>file_236967.txt</filename>
            <type>text/plain</type>
            <size>400</size>
            <attacher name="Nick">hiatal-tab-0t</attacher>
            
              <data encoding="base64">MS4gb3BlbiBodHRwczovL211c2ljLnlhbmRleC5jb20NCjIuIHN0YXJ0IHBsYXkgYW55IHRyYWNr
IG9uIHdlYnNpdGUuDQozLiBvcGVuIGJyb3dzZXIgY29uc29sZSBpbiBzZXBhcmF0ZSB3aW5kb3cg
YW5kIGVudGVyIGNvbW1hbmQgZXh0ZXJuYWxBUEkudG9nZ2xlUGF1c2UoKS4NCjQuIG9wZW4gbmV3
IHRhYi4NCjUuIHdhaXQgNC01IG1pbi4NCjYuIHNlbGVjdCBjb25zb2xlIHdpbmRvdy4NCjcuIGVu
dGVyIGluIGNvbnNvbGUgZXh0ZXJuYWxBUEkudG9nZ2xlUGF1c2UoKS4NCjguIHNlbGVjdCBhbm90
aGVyIEFwcCBvciBhbm90aGVyIHRhYiAobm90IG11c2ljLnlhbmRleC5jb20pIGFuZCBkbyBzb21l
IHRoaW5nLg0KOS4gcGxheWJhY2sgd2lsbCBiZSBzdG9wZWQgdHJvdWdoIDUwLTE1MCBzZWNvbmRz
Lg==
</data>

          </attachment>
      

    </bug>

</bugzilla>