Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
belltown
Roku Guru

roAudioPlayer bug?

On a Roku 1 running 3.1 build 1017, if an roAudioPlayer is Paused immediately before the end of the content is reached (within half a second or less from finishing, for example), then Resumed, then no events are fired when the content ends.

Normally, when the stream ends I get the following events:


roAudioPlayerEvent: IsRequestSucceeded
roAudioPlayerEvent: IsStatusMessage: end of stream
roAudioPlayerEvent: IsFullResult
roAudioPlayerEvent: IsStatusMessage: end of playlist


However, I get no events at all if I called Pause() immediately before the end and then Resume(), so the audio player thinks the content is still playing after it has finished. I found this behavior in my own code, but I've also noticed it with other channels. I was able to pause songs on Pandora and Slacker immediately before the end. After resuming, the channels never detected the end of the song.

A workaround is to keep track of how long the song has been playing then end the song after the Runtime has been reached.
0 Kudos
2 REPLIES 2
Anonymous
Visitor

Re: roAudioPlayer bug?

Thank you for this report. We will investigate. Do you have access to a Roku 2 device to know if this same issue appears on firmware 4.8?

Thanks,
Jon
0 Kudos
belltown
Roku Guru

Re: roAudioPlayer bug?

"RokuJon" wrote:
Thank you for this report. We will investigate. Do you have access to a Roku 2 device to know if this same issue appears on firmware 4.8?

Thanks,
Jon

No, I don't have a Roku 2, but if you'd like to send me one I'd be happy to investigate further.
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.