Log in or register to post comments

Load multiple videos for multiple image target in videoplayback sample

January 9, 2017 - 7:56am #1

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.

Load multiple videos for multiple image target in videoplayback sample

August 20, 2019 - 2:24am #7

Do you changed the data set and your play icon is coming if yes please share your code.

Thanks In advance

 

Load multiple videos for multiple image target in videoplayback sample

July 5, 2019 - 7:41am #6

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?

Load multiple videos for multiple image target in videoplayback sample

July 5, 2019 - 7:41am #5

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?

Load multiple videos for multiple image target in videoplayback sample

October 4, 2017 - 1:16am #4

how did you solved the problem. pls teach me.

Load multiple videos for multiple image target in videoplayback sample

May 26, 2017 - 8:19pm #3

elmirafrhnn wrote:

problem solved! :) if any one has problem with this tell me to explain the solution!

how you do that? i'm trying to develop an app that can track multiple images and video playbacks.

For example target image "A" will play video playback "A", while target image "B" will play video playback "B".

Load multiple videos for multiple image target in videoplayback sample

January 9, 2017 - 11:29am #2

problem solved! :) if any one has problem with this tell me to explain the solution!

Log in or register to post comments