Hello All,
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 :
/forum/android/pre-download-and-then-play-sd-card
But when I have multiple videos what should I do??
I changed VideoPlayerHelper like this :
File dir = new File(Environment.getExternalStorageDirectory().getAbsolutePath().toString()+ "/" + "ARVideos"); File file = new File(dir,filename); FileInputStream fileInputStream = new FileInputStream(file); mMediaPlayer.setDataSource(fileInputStream.getFD()); fileInputStream.close();
and in videoplayback I wrote my videos name :
mMovieName[0] = "a.mp4"; mMovieName[1] = "b.mp4"; mMovieName[2]="c.mp4";
but the videos play for some secondes and then stop! any help realy appreciate.thanks in advance.
problem solved! :) if any one
problem solved! :) if any one has problem with this tell me to explain the solution!
elmirafrhnn wrote:
[quote=elmirafrhnn]
problem solved! :) if any one has problem with this tell me to explain the solution!
[/quote]
how did you solved the
how did you solved the problem. pls teach me.
I'm using multiple targets to
I'm using multiple targets to play multiple videos, but the videos are all running together. Do you know how to play only the recognized target video?
I'm using multiple targets to
I'm using multiple targets to play multiple videos, but the videos are all running together. Do you know how to play only the recognized target video?
Do you changed the data set
Do you changed the data set and your play icon is coming if yes please share your code.
Thanks In advance