By Ballenazul
on Mon, 01/22/2018 - 11:04
Hello,
I'm trying to let a video play on a target image, the video should play as soon as the target is found.
I'm using vuforia's ImageTarget samples. I want the video to play automatically when the target is found, not by pressing the play button.
Thanks for your help.
Hello Ballenazul,
Hello Ballenazul,
I'd recommend removing the button logic from the sample and enabling Play on Awake on the video player. This will allow you to have the video immediately play upon detection.
Thanks,
Vuforia Support
Hello,
Hello,
Thank you for the prompt reply.
I've done that, but this plays the video only one time directly after the app is started, not when the target is found.
Hello again,
Hello again,
Is your video object set to be active initially? The video might start playing automatically if that's the case.
Thanks,
Vuforia Support
how do i set it to active?
how do i set it to active?
Hello shengen,
Hello shengen,
I found a way to do it.
To set the video to be active initially you have to select the video game object, and under the inspector in video player make sure "play on awake" is checked.
I am having the exact same
I am having the exact same issue when using the Video Player on a Quad. It's been driving me nuts for the past week. The video automatically starts playing once the Play button is pressed. I want the video to only play when the target image is found.