Skip to content

Ads: songs at the end, films every 10 min on the clock (0.47.0) - #304

Merged
ralyodio merged 1 commit into
mainfrom
fix/ads-song-boundaries-films-on-clock
Oct 20, 2026
Merged

ralyodio merged 1 commit into
mainfrom
fix/ads-song-boundaries-films-on-clock

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

Anthony: ads were cutting into songs; "what about movies just make it every 10 minutes it is 5 seconds".

  • nixamp.com player: the @profullstack/player timer is never left to fire. A song's break waits for onEnded and plays before the next track (waits for onBreakEnd); video and live streams take theirs on the clock.
  • TV stations: playlist-input cuts a film at the break, plays the spot, and resumes the film at the same position (no cut for a tail under 5 s). Radio still breaks only between songs.

Verified in headless Chrome against a local serve: song ad at position 12/12 then next track at 0; video ad at 5.5 s, resumed at 5.5 s. New test: film cut and resumed, song not. Full suite green.

🤖 Generated with Claude Code

… clock (0.47.0)

nixamp.com player: the package timer cut into songs. Breaks now run from the
app: a song's waits for the track to end and plays before the next one; a
video's, or a live stream's, comes on the clock (5 s every 10 min).
TV stations: a film is cut for its break every 10 minutes and picked up where
it stopped (playlist-input resume), instead of waiting out the whole film.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ralyodio
ralyodio merged commit b8dfff8 into main Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant