"roquoonewbie" wrote:
Keeping a timer wil be very inaccurate and error prone (through pauses/resumes/buffers, etc), so I assume there must be a way to query the player to get the correct position at any given time?
Bad assumption..
😉There have been a couple of discussions about it in the past. Your best bet is probably to use a "timer" roTimespan and a "playingTime" Integer to track the seconds during playback. Mark() the "timer" at the start of play, then store the elapsed seconds (additive) in "playingTime" any time you enter a pause or buffer state, then re-Mark() on resume. If playing, your elapsed time (the time you pass to SetProgressIndicator) would be playingTime + timer.TotalSeconds(). If paused, your elapsed time would simply be playingTime.
Does that make sense?
As for showing the progress bar, make sure your contentType is "audio" and you call SetProgressIndicatorEnabled(True).
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)