Android VideoView resume and seekTo

Posted by Chris on Stack Overflow See other posts from Stack Overflow or by Chris
Published on 2010-06-05T18:21:06Z Indexed on 2010/06/05 18:22 UTC
Read the original article Hit count: 371

Filed under:
|
|
|

I am playing a Video using a VideoView in my app. On the click of a button, it records the current position of the video, and the app opens up the browser with some url. On pressing the back button, the app comes back to video app and resumes the video from where it left off.

I looked at the Android Activity lifecycle and saw that onStart() method gets called once the video activity comes to the foreground. So I am creating my layout in onStart() and playing the video by seeking to the current position.

My problem is that when the video resumes, it buffers from the start and then seeks to. Since it already buffered the first time, is there a way to eliminate buffering again while doing a seekTo?

Thanks Chris

© Stack Overflow or respective owner

Related posts about android

Related posts about resume