By Laxmikantyadav1988
on Tue, 02/12/2013 - 10:10
Hello all,
I am working with Videoplayback sample of vuforia.I am using dat and xml for 3 images, and i also got image name while the camera is detecting any image of three imges. Now i want tIo play three different videos for those three images.I have started new activty for below android 4.0 devices and played video accordingly to image.
But my question is I am not able to play video from url for android above 4.0 devices which support video on texture.I need to play three different video for those three image after detection.
How to work for video from url in videoplayback
Hi, you can play video from URL both in fullscreen mode (Android 2.x and 3.x) and in video-on-texture mode as well (on Android 4.0 and above);
How to work for video from url in videoplayback
Hi,
But in videoplaybackHelper.java you can set only one data source(fix data source).Can i give some condition for three images and to play video accordigly.
How to work for video from url in videoplayback
Hi, in VideoPlaybackHelper, the code where you set the URL is in the load() method; this method is called from the VideoPlaybackRenderer class for each of the videos in your list, as shown in this snippet taken from VideoPlaybackRenderer:
How to work for video from url in videoplayback
Hi,,
it means i have to give all three urls in mMovieName array..? and based on serial it will take url to play video. am i right... or is there any other way.?
How to work for video from url in videoplayback
Yes, you can put the URLs in the mMovieName array.
How to work for video from url in videoplayback
Hi,
I have given the case to play video to play video on texture in videoplaybackrender.java inside onSurfaceCreated method like this.
How to work for video from url in videoplayback
Hi,
you should be able to achieve your result by following these steps (as I just tested them):
VideoPlayback.java:
Change the number of targets from 2 to your desired number of videos (e.g. 3):
How to work for video from url in videoplayback
Hi.Thanks For your response
can we make NUM_TARGET value in videoplayback.cpp (which is right now 3) variable, like we are getting NUM_TARGET value from weburl.
How to work for video from url in videoplayback
Hi
AlessandroB wrote:
[quote=AlessandroB]
Hi,
you should be able to achieve your result by following these steps (as I just tested them):
VideoPlayback.java:
Change the number of targets from 2 to your desired number of videos (e.g. 3):
How to work for video from url in videoplayback
Hi,
Actually the texture is displayed and play button also enabled once i clicked play button its goes some where and again its coming back to texure with play button. plz tell where i went wrong.
How to work for video from url in videoplayback
@
How to work for video from url in videoplayback
Hi, @ AlessandroB ,
How to work for video from url in videoplayback
Hi, what I meant in my previous message is simply that in the VideoPlayback sample the videos are loaded at application startup and are just associated to CHIPS and STONES;
How to work for video from url in videoplayback
@ udayasam:
if the video is not playing it could be for two reasons:
How to work for video from url in videoplayback
Hi ,
I Followed all the steps what you mentioned but it throwing error in logcat (i.e)
How to work for video from url in videoplayback
Hi udayar,
the problem is that you are trying to play a vdeo from a Youtube URL; unfortunately such URL does not point to an actual video file, so it cannot work;
How to work for video from url in videoplayback
Hi,