I'm trying to make a video player, but not using the "raw" or internet, I need to get the file from the memory of the phone, be it internal memory or sd card memory, I already tried through the path obtained by a " files "but when I put it in the Uri.parse of the videoViewer, it says it can not play the file:
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_video_pasta);
VideoView video = (VideoView) findViewById(R.id.videoView);
video.setVideoURI(Uri.parse("/storage/emulated/0/Download/video.mp4"));
video.setMediaController(new MediaController(this));
}
}
Would anyone have any idea how to do it?