On my button click I wrote the following code for playing video from my SDCARD (mp4).
video_view = (VideoView)findViewById(R.id.video_view); video_view.setVideoPath("/sdcard/myvideo.mp4"); video_view.setMediaController(new MediaController(this)); video_view.start();
I can play recorded video from SDCARD in player.
link 2
Is anybody ever faced this kind of problem ? If yes then how can it solve it ?
I've tried every method above, but none of them could work.
Finally, I tried to call this function, then the video appeared.
video_view.setZOrderOnTop(true);
Hope this also works for you.
2.1m questions
2.1m answers
60 comments
57.0k users