Media Player & Song Library

Hey Paul – I hadn’t discovered the delay function. And there’s no 2-button loop in this doc. It’s been a while (and I’m a little rusty), but let me see if I can remember. I think it’ll be easier to start with the auto-advance question…

The auto-advance works like this… When you press Start button in the Media Player, it sets the Media Player Control Start Time. The Playlist table then gives each song its own Start and Stop Times which are sums of the Media Player Control Start Time and song durations. The Playlist table determines which song is Currently Playing based on which song’s Start Time <= Now and Stop Time > Now. The Media Player embeds the song from the playlist where Currently Playing is true. So as long as the Media Player Control Start Time doesn’t change, the playlist will advance as Now coincides with a songs’ Start and Stop times.

The progress bar uses the songs Start and Stop times and their relation to Now. Elapsed time is Now - Start Time. And time leftover is Stop Time - Now.

Hope that makes sense!

1 Like