Did you call *prepare*() before you called seekTo?

Maybe post a snippet?

Thanks.


On Saturday, April 27, 2013 2:45:33 PM UTC-5, Larry Meadors wrote:
>
> I'm trying to play an hls audio stream, and start playback at a specific 
> point in the stream. It's an audio book, and in trying to resume where it 
> was stopped the last time the app was used.
>
> I've got the time saved and I can see in the debugger that I'm restoring 
> it before starting playback, but every time, it's starting at the beginning 
> of the file.
>
> After debugging more, I noticed that the duration when I call seekTo is 
> always zero.
>
> After starting playback, the duration is accurate. 
>
> If I call start, then call pause, then insert a delay and check the 
> duration, it eventually doors return the correct value. 
>
> The unfortunate side effect is that it pays the beginning of the stream 
> for a second or so, and then finally goes to the correct playback position.
>
> Any suggestions?
>
> Larry
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to