Bug 243256 - MediaSession controls disappear on resume after long pause
Summary: MediaSession controls disappear on resume after long pause
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: Safari 15
Hardware: iPhone / iPad iOS 15
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-07-27 10:50 PDT by Michael Rosenberg
Modified: 2022-07-27 18:21 PDT (History)
3 users (show)

See Also:


Attachments
A recording of the bug, following steps 1-6 (cutting out the 2min wait) (42.02 MB, video/quicktime)
2022-07-27 10:50 PDT, Michael Rosenberg
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Rosenberg 2022-07-27 10:50:40 PDT
Created attachment 461252 [details]
A recording of the bug, following steps 1-6 (cutting out the 2min wait)

If you have an iOS Safari MediaSession that has been paused for at least 2min, then resuming it from headphones will make the controls disappear.

Steps to reproduce:
1. Have headphones connected to your iPhone (I only tested this with Airpods Pro and a Jabra bluetooth headset)
2. In iOS Safari, open the Google Chrome MediaSession audio example page: https://googlechrome.github.io/samples/media-session/audio.html
3. Click Play
4. From the MediaSession controls in the iOS Notification Center, pause the audio (you can also pause using the headphones; it doesn't matter)
5. Navigate to another app and wait 2 minutes
6. Using your headphones, resume the audio

The MediaSession should resume the audio, but the controls will switch to "Not Playing" after a few seconds, and disappear after a few more seconds. I've attached a screencap of this happening (cutting out the 2min wait in between).

OS: iOS 15.6
Comment 1 Radar WebKit Bug Importer 2022-07-27 18:21:57 PDT
<rdar://problem/97695161>