how to video play automatically?

Posted by Karthikeyan Karthik on Stack Overflow See other posts from Stack Overflow or by Karthikeyan Karthik
Published on 2012-10-19T10:54:23Z Indexed on 2012/10/19 11:01 UTC
Read the original article Hit count: 205

Filed under:
|
|

When load in my app automatically play videos. when the video should stop, automatically to play another video.enter code here

private void videoplayer(String filename, int position) { // TODO Auto-generated method stub

        getWindow().setFormat(PixelFormat.TRANSPARENT);
         VideoView  video = (VideoView)findViewById(R.id.vid_view1);

         System.gc();

            video.setVideoPath(filename);
            video.requestFocus();
            if(position>=0){
            video.start();
            }


    }

© Stack Overflow or respective owner

Related posts about android

Related posts about video