Skip to content

How to play a song once at a specific time? #3762

Answered by MaPePeR
TomKranenburg asked this question in Q&A
Discussion options

You must be logged in to vote

Maybe try this:

radio = ...

time_queue = request.queue()

def queue_track(url) = 
  time_queue.push(request.create(url))
end

thread.when(predicate.activates({5w17h00m}), {list.iter(queue_track, ["path1", "path2"])})

radio = fallback(track_sensitive=false, [time_queue, radio])

radio = crossfade(...)

Replies: 2 comments 23 replies

Comment options

You must be logged in to vote
17 replies
@TomKranenburg
Comment options

@gAlleb
Comment options

@gAlleb
Comment options

@MaPePeR
Comment options

Answer selected by TomKranenburg
@TomKranenburg
Comment options

Comment options

You must be logged in to vote
6 replies
@vitoyucepi
Comment options

@TomKranenburg
Comment options

@gAlleb
Comment options

@TomKranenburg
Comment options

@gAlleb
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants