Wednesday, February 2, 2011

[android-developers] VideoView seetTo() takes longer time to start video after pause

Hi All,

In my project I am playing video with VideoView and when incoming call is there,I pause the video.

But later it takes long time to resume playback.But it resumes to correct point.

Sometimes it says Video cannot be played while resuming.

Is there any other way to handle pause() and resume() of VideoView.

protected void onPause() {
        super.onPause();
        pos=videoView.getCurrentPosition();
        videoView.pause();
}

protected void onResume() {
        super.onResume();
        videoView.seekTo(pos);
}

Please help,it is urgent.

Thanks
Kavitha

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment