how to video play automatically?
- by Karthikeyan Karthik
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();
}
}