Android Video View - Fails to Load file from SD Card
I have an activity that uses 开发者_Go百科VideoView
and MediaController
.
I have a .mp4 file.
When I put the file in
res/raw
folder, I can play the video usingUri.parse("android.resource://<package>/" + R.raw.id_video)
However, when I put the same file in the filesystem, it plays properly. I use
videoView.setVideoPath("/sdcard/myfile.mp4");
What is the problem?
can u try videoview.setVideoPath("sdcard/myfile.mp4);
one question.. are u using the same video view to play the video from raw folder as well?
精彩评论