This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index at /llms.txt, or add .md to any page's URL.
Media session
•
A remote pause leaves a bound paused false. The lock screen's or a media
key's pause pauses the element; an app that binds paused and does not mirror
the element's pause event still holds paused = false, so its play button
and its next commit disagree with the player. Fix: pause=hostPaused playing=hostPlaying, each setting paused. (LLP 1098 D3.)
•
The lock screen's skip is not your action's. The lock screen shows
seekbackwardOffset/seekforwardOffset (default 10), not the number in
seekforward=skip(30). Fix: keep the two equal, or take the record and seek
by d.seekOffset. (LLP 1098 D2.)
•
On iOS a media session needs a playback session and background audio.
build.mjs --ios refuses a metadata= without "audio_session": "playback"
and "audio" in host.ios.backgroundModes: the lock screen shows only a
non-mixable playback session's media, and audio stops at the lock without the
mode. "playback-mix" does not qualify. (LLP 1098 D8.)
Is this helpful
Last updated December 1, 2026