I have a Question, We are trying to Upload the 5 images and their corresponding 5 videos and we get the 1 .wtf file for the 5 images and videos and this file we are using in my code but only single video is playing for the 5 images How can i manage the 5 videos for 5 images in my code. Please Help
You could refer to this documentation section here, but instead of having an ImageDrawable as an augmented object you would need to specify a VideoDrawable instead.
Eva
D
Divyansh Sharma
said
over 6 years ago
Helllo ,
I am using the following Sample Code : this.tracker = new AR.ClientTracker("assets/tracker.wtc", { // onLoaded : this.worldLoaded }); var video = new AR.VideoDrawable("assets/Tharawat Seas (app Vid)-1 (640 - 360).mp4", 0.40, { // offsetY: -0.3, offsetX : 0.015, offsetY : 0.015 });
var pageOne = new AR.Trackable2DObject(this.tracker, "*", { drawables : { cam : [video] }, onEnterFieldOfVision : function onEnterFieldOfVisionFn() { video.play(-1); } });
Wikitude Support
said
over 6 years ago
Hello,
In the code you pasted above you specify only one image target. As I mentioned before, please refer to the document link I provided. These are basics things that are covered in our documentation here. So I would suggest, before you start coding, that you have a look at our documentation in order to understand how it works.
Divyansh Sharma
Hello Sir ,
I have a Question, We are trying to Upload the 5 images and their corresponding 5 videos and we get the 1 .wtf file for the 5 images and videos and this file we are using in my code but only single video is playing for the 5 images How can i manage the 5 videos for 5 images in my code. Please Help
Thanks
Divyansh Sharma