[Webkit-unassigned] [Bug 261858] New: [iOS 16.x & iOS 17.x] autoplay in audio element and media session controls not working in standalone web app (pwa) when playback ends

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 20 20:11:28 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=261858

            Bug ID: 261858
           Summary: [iOS 16.x & iOS 17.x] autoplay in audio element and
                    media session controls not working in standalone web
                    app (pwa) when playback ends
           Product: WebKit
           Version: Safari 17
          Hardware: iPhone / iPad
                OS: iOS 17
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Media
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: clark1729 at outlook.com

Steps:
1. play a song in standalone web app
2. return to homescreen and leave the music in the background

What happened:
When the song ends, it is simply paused. The next song isn't played. The buttons (prev, play, next) in the lockscreen's music controls have no response (some handlers are registered in MediaSession). Once I enter the web app, it continues to play the next song normally.

Expected:
When the song ends, the callback is called normally to play the next song.

More info:
1. There are no errors or warnings in the devtools' console.
2. Handlers registered in MediaSession excuted normally when a song is playing.
3. Audio events like `ended` and `canplay` triggers normally.
4. It works fine as a normal website opened in Safari (instead of being added to homesreen).
5. It works fine in iOS 15.

If you need to reproduce the problem, the website is https://carllllo.work/music/. Click the green text "播放全部" button on the top right panel and it should start playing a list of songs.

If you need any extra information, I am willing to help.

Thanks for your time.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230921/8c98052b/attachment.htm>


More information about the webkit-unassigned mailing list