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

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!

I think:

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

Is what you are looking for.

1 Like

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?

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

seen

Cheers