Changeset 6a51968 in Klonkt for src/views


Ignore:
Timestamp:
06/25/2026 02:02:59 PM (3 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
7a235bc
Parents:
c648b04
Message:

audio: Media Session API for reliable mobile auto-advance + lock-screen controls

On mobile, auto-advancing to the next track started then stopped immediately: iOS
pauses a programmatic play() with no active media session. Wire navigator.mediaSession
— per-track metadata (title/artist/album/artwork), play/pause/next/prev/seek action
handlers, and playbackState — so the session stays live (continuous playback works) and
the OS shows lock-screen / notification / headset controls. audio-player.js?v=30.

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/shell.ejs

    rc648b04 r6a51968  
    335335     ?v=N — cache-buster: bump bij elke audio-player.js wijziging zodat
    336336     Cloudflare (max-age=1y) niet de oude versie blijft serveren. -->
    337 <script src="/assets/js/audio-player.js?v=29"></script>
     337<script src="/assets/js/audio-player.js?v=30"></script>
    338338<!-- Eigen custom media-embeds (YouTube/SoundCloud/Spotify) via de echte
    339339     player-API's + gedeelde mutual-exclusion registry met de site-speler. -->
Note: See TracChangeset for help on using the changeset viewer.