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: 
greubel
Visitor

Audio Seek

Having difficulty in getting Seek() to function correctly on the 3.x platforms. It works great on the 5.x boxes.
Start the mp3 audio, Play() and then issue a Seek() to the resume point. The 3.x boxes always start the song over.
Tried letting it play for a couple of seconds and then issue the Seek() but it acts the same.
Is there a "trick" to getting it to function correctly ?
0 Kudos
2 REPLIES 2
TheEndless
Channel Surfer

Re: Audio Seek

Seek() doesn't work with mp3's on the 3.x firmware. That functionality wasn't added until 5.1.
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)
0 Kudos
greubel
Visitor

Re: Audio Seek

It looks like if you seek() right after you start the song with a play(), it doesn't work. But if you seek() after the song is playing, it appears to function.
Can't tell if did it correctly but it does move in the right direction (FF or REW).
Also after the seek(), you get a double "start of play" audio msg.

Traces of the two levels.
Started a song with a resume point.
Then while it was playing issued a another seek().

Level 3.1 1198

12:53:25.397 375033 Audio Msg = startup progress index = 0 data = 0
12:53:25.626 375213 Audio Msg = startup progress index = 66 data = 0
12:53:26.583 376192 Audio Msg = startup progress index = 132 data = 0
12:53:26.801 376437 Audio Msg = index = 0 data = 0
12:53:26.890 376501 Audio Msg = startup progress index = 198 data = 0
12:53:26.952 376588 Audio Msg = startup progress index = 264 data = 0
12:53:27.021 376657 Audio Msg = startup progress index = 330 data = 0
12:53:27.158 376734 Audio Msg = startup progress index = 0 data = 0
12:53:27.260 376896 Audio Msg = Stream started. index = 0 data = 0
12:53:27.425 377061 Audio Msg = startup progress index = 330 data = 0
12:53:27.835 * LOG - STATUS: ok, TARGETIP: 192.168.1.4, HTTPCODE: 200 <--- Loaded the song
12:53:27.853 377488 Audio Msg = startup progress index = 330 data = 0
12:53:27.860 377496 Audio Msg = startup progress index = 530 data = 0
12:53:27.869 377504 Audio Msg = startup progress index = 650 data = 0
12:53:27.878 377513 Audio Msg = startup progress index = 724 data = 0
12:53:27.924 377560 Audio Msg = startup progress index = 825 data = 0
12:53:27.968 377604 Audio Msg = startup progress index = 863 data = 0
12:53:27.976 377613 Audio Msg = startup progress index = 964 data = 0
12:53:27.991 377625 Audio Msg = startup progress index = 999 data = 0
12:53:28.038 377673 Audio Msg = startup progress index = 999 data = 0
12:53:28.054 377690 Audio Msg = startup progress index = 1000 data = 0
12:53:28.063 377699 Audio Msg = start of play index = 0 data = 0

12:53:52.360 Seeking to -> 92

12:53:53.339 402976 Audio Msg = startup progress index = 0 data = 0
12:53:54.148 403785 Audio Msg = Stream started. index = 29 data = 0
12:53:54.251 403888 Audio Msg = startup progress index = 330 data = 0
12:53:54.318 403933 Audio Msg = startup progress index = 553 data = 0
12:53:54.353 403989 Audio Msg = startup progress index = 938 data = 0
12:53:55.285 404921 Audio Msg = startup progress index = 999 data = 0
12:53:55.457 405093 Audio Msg = startup progress index = 999 data = 0
12:53:55.613 405249 Audio Msg = startup progress index = 1000 data = 0
12:53:55.622 405258 Audio Msg = start of play index = 0 data = 0

12:53:55.630 Seek complete - 92 <---------- Here is where I think it did it

But then we get another Start of Play ????

12:53:55.644 405280 Audio Msg = startup progress index = 1000 data = 0 <--- ???
12:53:55.656 405292 Audio Msg = start of play index = 0 data = 0 <--- ???


Level 5.4 3140

13:10:27.292 122579 Audio Msg = startup progress index = 0 data = 0
13:10:27.440 122727 Audio Msg = startup progress index = 66 data = 0
13:10:27.443 122730 Audio Msg = startup progress index = 132 data = 0
13:10:27.451 * LOG - STATUS: ok, TARGETIP: 192.168.1.4, HTTPCODE: 200
13:10:27.457 122744 Audio Msg = startup progress index = 198 data = 0
13:10:27.460 122746 Audio Msg = index = 0 data = 0
13:10:27.462 122749 Audio Msg = startup progress index = 264 data = 0
13:10:27.465 122752 Audio Msg = startup progress index = 330 data = 0
13:10:27.468 122754 Audio Msg = Stream started. index = 0 data = 0
13:10:27.470 122757 Audio Msg = playback stopped index = 0 data = 0 <----- stopped
13:10:27.473 122760 Audio Msg = startup progress index = 0 data = 0
13:10:27.478 122765 Audio Msg = startup progress index = 132 data = 0
13:10:27.481 122767 Audio Msg = startup progress index = 198 data = 0
13:10:27.483 122770 Audio Msg = startup progress index = 330 data = 0
13:10:27.486 122773 Audio Msg = Stream started. index = 0 data = 0
13:10:27.489 122776 Audio Msg = index = 1 data = 0
13:10:27.492 122779 Audio Msg = startup progress index = 330 data = 0
13:10:27.500 * LOG - STATUS: ok, TARGETIP: 192.168.1.4, HTTPCODE: 206 <---- Loaded song twice
13:10:27.502 122789 Audio Msg = startup progress index = 815 data = 0
13:10:27.505 122792 Audio Msg = startup progress index = 999 data = 0
13:10:27.508 122795 Audio Msg = startup progress index = 999 data = 0
13:10:27.511 122797 Audio Msg = startup progress index = 1000 data = 0
13:10:27.515 122800 Audio Msg = start of play index = 0 data = 0

13:10:52.459 Seeking to -> 352

13:10:52.547 147834 Audio Msg = playback stopped index = 0 data = 0 <----- stopped
13:10:52.578 147865 Audio Msg = startup progress index = 0 data = 0
13:10:52.606 147892 Audio Msg = startup progress index = 132 data = 0
13:10:52.609 147895 Audio Msg = startup progress index = 198 data = 0
13:10:52.626 147913 Audio Msg = startup progress index = 330 data = 0
13:10:52.636 147923 Audio Msg = Stream started. index = 26 data = 0
13:10:52.656 147943 Audio Msg = index = 1 data = 0
13:10:52.667 147954 Audio Msg = startup progress index = 330 data = 0
13:10:52.697 147975 Audio Msg = startup progress index = 999 data = 0
13:10:52.874 148160 Audio Msg = startup progress index = 999 data = 0
13:10:52.946 148232 Audio Msg = startup progress index = 1000 data = 0
13:10:52.949 148235 Audio Msg = start of play index = 0 data = 0

13:10:52.951 Seek complete - 352
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.