Start a new topic

autotrigger action when IR

autotrigger action when IR



When did you plan to release the fix ?




you can expect the Maintenance update in the next 2 weeks.

I am also getting the same error. Can you please let me know that the fix for this has been released?


this issue has been fixed since a couple of versions. What SDK version are you using and can you please describe your problem in detail? 


Thanks for the response. Previously I was using 3.1 version, now I have upgraded to 3.2 and works fine.

And I need one more help. Can you help me how to play the video in full screen using VideoDrawable API? I have looked at the documentation, and I cpuld not find the details. 

If you want to play it full screen, you should use the AR.context.startVideoPlayer() function. VideoDrawables will (on supported devices) always be overlaid on top of the target image or displayed as part of a GeoObject.

Hi Wolfgang, Thanks for the response. I need to play the video in half the size of the screen. If I need to increase the video player size on top of image what is the option for that?

This can be done by setting the height of the VideoDrawable similar to the size of other Drawables:


var video = new AR.VideoDrawable("assets/video.mp4", 0.5);


This gives it 0.5 of the target image's height.

I just want to execute an action (video player) when an trackable object is shown to the user. Is there any way to do this ?

With this line of code, the trigger is fire when the object is loaded but not when it is displayed :

var tracableObject = new AR.Trackable2DObject(logoTracker, "imageID", { drawables: { cam: imageOverlay }, triggers: {onEnterFieldOfVision: playMovie}});

function playMovie()
        var url = "";       


the onEnterFieldOfVision trigger is the correct trigger to use. Can you test if the trigger is called correctly for you using e.g. I would be interested if the trigger fires only at loading or would fire correctly afterwards as well.

FYI, as of 1.1 the trigger object is deprecated and all triggers can be used accessed directly as object properties e.g. new AR.Trackable2DObject(logoTracker, "imageID", { drawables: { cam: imageOverlay }, onEnterFieldOfVision: playMovie});

Thanks, direct access solve it :AR.Trackable2DObject(logoTracker, "imageID", { drawables: { cam: imageOverlay }, onEnterFieldOfVision: playMovie});
Unfortunately, there's still one issue when I close the movie player (selecting "Done" button). Application freezes, after blinking, with differents messages like :

Many times, the movie player is closed automatically, few second after starting
Great to hear that the trigger works.

We will look into the startvideo player problem and I'll get back to you once I know more.

One update :
Many times, the movie player is closed automatically, few second after starting
This is caused by "masterAnimationGroup.start(-1);"  because the object was not instantiate when this method was called... so I fixed it.

But the crash when the movieplayer ends is still there.

Login or Signup to post a comment