# roAudioPlayer bug?

**URL:** <https://forum.developer.roku.com/t/roaudioplayer-bug/1842>\
**Category:** Archived\
**Tags:** roku-developer-program\
**Created:** [July 30, 2012, 8:31pm UTC](https://forum.developer.roku.com/t/roaudioplayer-bug/1842 "2012-07-30T20:31:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![belltown](https://avatars.discourse-cdn.com/v4/letter/b/8edcca/32.png) [@belltown](https://forum.developer.roku.com/u/belltown)\
**Post date:** [July 30, 2012, 8:31pm UTC](https://forum.developer.roku.com/t/roaudioplayer-bug/1842/1 "2012-07-30T20:31:45Z")

</div>

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:

```auto

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.

---

<div class="post-metadata">

**Author:** ![Anonymous1](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@Anonymous1](https://forum.developer.roku.com/u/Anonymous1)\
**Post date:** [July 31, 2012, 1:21am UTC](https://forum.developer.roku.com/t/roaudioplayer-bug/1842/2 "2012-07-31T01:21:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![belltown](https://avatars.discourse-cdn.com/v4/letter/b/8edcca/32.png) [@belltown](https://forum.developer.roku.com/u/belltown)\
**Post date:** [July 31, 2012, 6:07am UTC](https://forum.developer.roku.com/t/roaudioplayer-bug/1842/3 "2012-07-31T06:07:52Z")

</div>

> “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.
