Start a new topic

autotrigger action when IR

autotrigger action when IR

Hi,

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 = "http://www.wikitude.com/doc/tutorial/Serie3.m4v";       
        AR.context.startVideoPlayer(url);
}


Thanks.
Login or Signup to post a comment