I have an activity that uses 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?