HI

I am trying to switch between two video files dynamically, but as soon
as I set the path for the second video file during playback of the
first, the app either hangs or force closes. This is what I am doing

if(mVideoView.getCurrentPosition()>2000)  //switch to other video
after 2 secs.
        {

                mVideoView.pause();
                mVideoView.stopPlayback();

                mVideoView.setVideoPath("/sdcard/Videos/Test.mp4");
        //set path for new video
                mVideoView.start();

                mVideoView.requestFocus();

                }

Am I missing something?

Abhi

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to