Hi,
I am trying to play a video from URL, it is working fine but whenever
i am changing the orientation of my mobile it is reset and starts
playing all over again and even reset the already buffered data. Here
is my code

        super.onCreate(icicle);
                        getWindow().setFormat(PixelFormat.TRANSLUCENT);
                        setContentView(R.layout.main);

                        video = (VideoView)findViewById(R.id.video);
                        video.setVideoURI(uri);
                        ctlr = new MediaController(this);
                        ctlr.setMediaPlayer(video);
                        video.setMediaController(ctlr);
                        video.requestFocus();
                        video.start();

Thanks :)

-- 
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

Reply via email to