By sajol
on Sat, 11/10/2012 - 06:43
I successfully run android viedoplayback AR sample in my device.After installing app in my device it can track two image(stones and chips) and can play viedo according with image.
Now i want to add new trackable image and movie in this sample application.Please give some solution...
Add my new trackable data and movie in viedoplayback sample
Hi, here are some guidelines on how to achieve what you want:
- open VideoPlayback.java:
- modify the NUM_TARGETS value to 3 or more (now it is set to 2)
- add a definition for an extra target next to CHIPS and STONES, i.e. update this code:
Add my new trackable data and movie in viedoplayback sample
Thank you very much.It works fine.
I have another problem.I want to play viedo from web server.Please give me some instruction
Add my new trackable data and movie in viedoplayback sample
Hi, take a look at VideoPlayerHelper.load method. There's a line where data source is set, and you should change it to MediaPlayer.setDataSource(Context, Uri) - where Uri is the url to your video stream.
Add my new trackable data and movie in viedoplayback sample
Indeed, you can follow Harism's suggestion, just put the video URL in the setDataSource.
Add my new trackable data and movie in viedoplayback sample
In ViedoPlayerHelper.java i comment following three line of code
AssetFileDescriptor afd =
Add my new trackable data and movie in viedoplayback sample
Hi, I tried following stream and it worked ok at least;
mMediaPlayer.setDataSource("rtsp://dmzosx001.dpa.act.gov.au/medium");
Add my new trackable data and movie in viedoplayback sample
Hi sajol,
can you provide a link to the video that you are trying to play (if that's public) ?
so, we could make a test here too.
Add my new trackable data and movie in viedoplayback sample
sajol,
I tried the video that you have sent me, and indeed it does not work, but that is due to a connection failure, not the video itself;
Add my new trackable data and movie in viedoplayback sample
Investigating a bit further: it seems that MP4 sometime have problems to be played in streaming mode; this seems to depend on some encoding settings when the video was created.