Add audio player dock to episode list #10
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/player-dock"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adds a basic click-and-play audio player to the list UI. No server-side changes:
/audio/already serves mp3s with Range support viahttp.ServeContent, so seeking works out of the box and no transcoding is involved.<section class="player" hidden>) sits above the Episodes heading, outside#episode-list— the 30s polling refresh replaces list innerHTML and can never interrupt playbackdata-audioattr); first click unhides the dock, sets src/title/download link, callsplay(); one episode plays at a time×close control pauses audio, resets src/buffering, clears title/link, re-hides the dock<audio controls preload="none">so the list doesn't prefetch every episodeTests
internal/server/page_test.go: play button +data-audioon done rows only, dock rendered outside the list, close button presentmise run check+mise run testgreen (-count=1)b226096b4cdd2aaa0642