greubel
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2010
08:03 PM
Audio Player Seek() ????
I tried using the seek() function to position both forward and back in a song and either I'm doing it wrong or something is screwy.
Do you have to stop() or pause() before the seek() ? I tried it both ways and without either and it still doesn't function correctly.
I have it setup to forward and reverse seek with the remote keys. I'm trying to do a fast forward and reverse. Each click of the button bumps + or - 10 seconds from what I think is the current position and then do the seek() to that value. It does something but I don't know what.
If you go beyond the end of the song the audio stops, which it should. But shouldn't the next song pickup ?
I use the elapsed time to handle the progress bar and it functions correctly. So the elapsed time is correct and the total length of the song is correct. I have debug statements in that show the "current" location based on elapsed time of where I think the song is. But when it reaches about 50% of the total, the song ends. So I ran off the end !
Any thoughts ?
Do you have to stop() or pause() before the seek() ? I tried it both ways and without either and it still doesn't function correctly.
I have it setup to forward and reverse seek with the remote keys. I'm trying to do a fast forward and reverse. Each click of the button bumps + or - 10 seconds from what I think is the current position and then do the seek() to that value. It does something but I don't know what.
If you go beyond the end of the song the audio stops, which it should. But shouldn't the next song pickup ?
I use the elapsed time to handle the progress bar and it functions correctly. So the elapsed time is correct and the total length of the song is correct. I have debug statements in that show the "current" location based on elapsed time of where I think the song is. But when it reaches about 50% of the total, the song ends. So I ran off the end !
Any thoughts ?
2 REPLIES 2
renojim
Community Streaming Expert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2010
09:27 PM
Re: Audio Player Seek() ????
It doesn't work on MP3s. There's a thread here someplace.
-JT
-JT
Roku Community Streaming Expert
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.
DeftOne
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2010
09:55 PM
Re: Audio Player Seek() ????
viewtopic.php?f=34&t=30673&p=186946
Roku2 XS (13A166000325) HDMI to LG 42" LCD 1080p (42LH30)
Roku XDS (K0A073000137)
Netgear WNDR3400 (all Rokus wireless)
25 Mbps
Roku XDS (K0A073000137)
Netgear WNDR3400 (all Rokus wireless)
25 Mbps