I try to add new markers images and videos, that are starting when camera is pointing at a specific target.
I edit targets.json file, and post there one more image:
{
"image" : "test1.jpg",
"name" : "test1"
},
Then I added HelloAR.java class:
1. Method initGL- added size of ArrayList <VideoRenderer> from 3 to 4.
2. Method render - added one "else if" for new target image and video
if (target_name.equals("test1") && video_renderers.get(3).texId() != 0) {
video = new ARVideo();
video.openVideoFile("test1video.mp4", video_renderers.get(3).texId());
current_video_renderer = video_renderers.get(3);
Then I added files: test1.jpg and test1video.mp4 to resourses/
And nothing happens when I compleate the app and pointing camera to test1.jpg image.