"RokuChris" wrote:
roAudioPlayer generates a "start of play" event when the initial buffer completes and the audio starts playing, that would be your zero mark. From there you can trigger the wait() function once per second and increment a counter to know where in the audio you are. This thread may be helpful viewtopic.php?f=34&t=26345
For what it's worth, I've found that audio playback actually starts well before the "start of play" event. You're results may be different, but I've found that there's 13% buffering, then a isListItemSelected() event, at which point audio playback starts, then the remainder of the buffering, and
then the "start of play" event.
You may also want to user a timer and Mark() it when playback starts rather than rely on the 1000ms wait timeout. Again, that's up to your preference, but I found that to be a little more reliable.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)