Log in or register to post comments

Wait for first frame

March 30, 2020 - 2:14am #1

Hi Everyone,

I want to create simple AR card with a video.

I want the video and its audio to be shown only when the image is targeted by the camera.

When I ticked the "wait for the first time" a black screen appears.

When I ticked the "play on awake" the video has shown but the audio was playing from the beginning (not from the first time i enter the card to the frame)

I have read many of your post in this matter, none help me, and i don't understand anything which is related to script or code. 

what should i do?

Thanks a lot in advance!!!

 

Wait for first frame

March 30, 2020 - 3:17am #2

Hi,

just add a new Event for OnTargetFound() and OnTargetLost() of you ImageTarget and drag&drop your Video Player Object on it. Then choose Videoplayer.play() and Videoplayer.pause() as events. See picture attached.

Untick "wait for the first time" and "play on awake".

 

AttachmentSize
Image icon snip.PNG19.93 KB
Log in or register to post comments