Q: Skip current playlist to current time after infinite stream

Good day everyone,

I am currently working on a script that allows our presenters to start a stream on an mAirlist instance from a remote studio.

When they click a button a stream item (infinite) is inserted into the playlist, which plays for an unknown amount of time, streaming the audio from the remote studio.

This stream item has an “Action On Start” to change the automation mode to “Assist”. During the playback of this stream, the playlists of the following hours are inserted into the playlist at xx:00, but are not played, because the playout is in “Assist” mode, skipping the hour markers.

When the presenter presses the “Stop Stream” button in the remote studio, we stop the stream and we want to skip to the item that would need to play at that exact moment in time (skipping all older items that should already have been played in the remote studio)

I tried using all types of GetStartTime, but as far as I am aware, none of these give the actual “planned” time of an item. Backtiming becomes unavailable as soon as an infinite stream item is inserted.

Any ideas on how to solve this?

My approach were, from TOTH, adding up the items‘ durations via GetEffectivePlaybackDuration, maybe storing them in an array for further use, and compare it in the background with the actual time to skip the respective NEXT item one after the other. Should that work, I even would consider some further computing to achieve a clean backtiming.