SkipFire
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2012
07:20 AM
roAudioPlayer isPlaying?
Is there any isPlaying property for the audio player? I am trying to implement the progress bar and as long as I don't pause or stop playback it seems to work ok, but as soon as a use pause or playback the counter gets out of sync with where the song actually is, and if the stream gets interrupted I am totally out of whack.
Ideal would of course be to have it work more like the video side where it can handle progress relatively automatically, but just adding the length property and isPlaybackPosition message would really make it pretty easy to implement progress bars.
Ideal would of course be to have it work more like the video side where it can handle progress relatively automatically, but just adding the length property and isPlaybackPosition message would really make it pretty easy to implement progress bars.
3 REPLIES 3


Roku Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2012
10:23 AM
Re: roAudioPlayer isPlaying?
No, there isn't. You'll need to keep track of the audio player's state on your own. The various isStatusMessage events can be helpful with that task.
SkipFire
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2012
11:08 AM
Re: roAudioPlayer isPlaying?
I am finding my progress bar sometimes being all the way full even though the song isn't near the end. I've only seen it a couple of times when it has been paused and coming out of screensaver, but I can't make it happen on demand so it isn't just pausing and the screensaver that causes the problem. My guess is some event is being fired that goes into the code where I set my own isplaying = true when it shouldn't, hence the desire for a property of IsPlaying, then there would be no doubt.
It isn't a big enough problem for me to be overly concerned about, though I'm sure at some point it will bug me enough that I will track it down till I figure it out.
It isn't a big enough problem for me to be overly concerned about, though I'm sure at some point it will bug me enough that I will track it down till I figure it out.
belltown
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2012
11:35 AM
Re: roAudioPlayer isPlaying?
This example might be of some help: http://forums.roku.com/viewtopic.php?f=34&t=26345&p=162322#p224644