Bug 236967 - Unexpected stop playing an audio track on a website
Summary: Unexpected stop playing an audio track on a website
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: Safari 15
Hardware: Mac (Intel) macOS 12
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-02-21 04:22 PST by Nick
Modified: 2022-03-19 11:28 PDT (History)
5 users (show)

See Also:


Attachments
Test case (400 bytes, text/plain)
2022-03-09 10:23 PST, Nick
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick 2022-02-21 04:22:14 PST
If start play Audio on any website using JavaScript, for example:

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

or

    document.querySelector(".player-controls__btn_play").click();


or using websites API


    externalAPI.togglePause();


playback stops after 20-80 seconds (media tab must be inactive).
Comment 1 Radar WebKit Bug Importer 2022-02-23 15:40:44 PST
<rdar://problem/89382571>
Comment 2 Smoley 2022-03-09 09:34:19 PST
Thanks for filing, can you please link a reduced test case here?
Comment 3 Nick 2022-03-09 10:23:36 PST
Created attachment 454262 [details]
Test case