How to play a video in android? where do I put my video file? thanks for reading.
A:
You could put the video in as a raw resource, and then access it using the MediaPlayer.
More on that here:
xil3
2010-09-19 11:34:56
The link you provided will play video file from resource but its not videoView
Jim
2010-09-19 15:26:36
VideoView vd = (VideoView)findViewById(R.id.Video); vd.setVideoPath("F:/SCHOGINI/work_apps/Video/res/raw/v.3GP"); vd.start();
Jim
2010-09-19 15:26:58
the Above code is not working can you explain
Jim
2010-09-19 15:27:19
A:
Look at the 'APIDemos' project in the samples directory of the Android SDK. There is a MediaPlayerDemo.java and a VideoViewDemo.java files which should get you started.
Morrison Chang
2010-09-19 20:41:53