Event name parent.on("CameraOnTrackImage", ....)?


#1

Is there a event that emits a signal when the camera is on the track image? My issue is that the 3D Streaming video starts before i focus the track image and i need to prevent that.

Thanks a lot! The platform is amazing!
Gooooooo BRAZILLLLLLLLLLLLLLLL!


#2

I think:

parent.on("seen", () => {
	...
});

Is what you are looking for.


#3

Yes! Exactly what i wanted, but the video seems “stuck”. It doesn’t play. Following the code:

const myVideo = symbol.nodes.Mdicos_SemFronteiras_HoldonMantenhaseFirme11_mp4;

parent.on("show", parent_show);
function parent_show() {
    // Make sure we start from fully hidden
    display_hidden.reset();

    // Move to the shown state
    display_shown.activate();
}

parent.on("seen", () => {
    myVideo.start()
})

parent.on("notseen", () => {
    display_hidden.reset();
})

Do you know what i’m doing wrong?


#4

I think your code is not at the right place… :slight_smile:
The events seen/notseen must be attached to your trackingImage, not to the root.
Just right-click on your tracking image then choose: New>Script>seen/notseen

Cheers