I'm working on videoplayback sample to make it dynamic ,I can dynamically get dataset from server and use it .
I download videos and save them in sd card ,if I have one video I can load it correctly as you can see in this post :
But when I have multiple videos what should I do??
I changed VideoPlayerHelper like this :
File dir = new File(Environment.getExternalStorageDirectory().getAbsolutePath().toString()+ "/"
File file = new File(dir,filename);
FileInputStream fileInputStream = new FileInputStream(file);
and in videoplayback I wrote my videos name :
mMovieName = "a.mp4";
mMovieName = "b.mp4";
but the videos play for some secondes and then stop! any help realy appreciate.thanks in advance.