Log in or register to post comments

Video To Stop and Restart when the Tracker is lost and found

May 21, 2018 - 6:04am #1

Hi Guys

I am completely new to Unity, AR and Coding, i have been trying to figure out the following issue for last 3 days but with no luck.

Creating a AR app which plays a Video

My Video Auto Plays when the target is found(great this works as i want it) though when the Tracker is lost and found again the video keeps playing,what i need it to do is restart the video and play from the start again.

I had a similar issue with the audio part but was able to resolve them by going through the forums.

Where as the video i am completely clue less.

 

Would appreciate your help.

Video To Stop and Restart when the Tracker is lost and found

July 19, 2019 - 9:15am #3

Video challenges here. I need to dig in and find out what is happening.

Video To Stop and Restart when the Tracker is lost and found

May 23, 2018 - 11:35pm #2

VideoPlayer.time is what you are looking for. Reset it to 0 when if tracking is lost.

https://docs.unity3d.com/ScriptReference/Video.VideoPlayer-time.html

Log in or register to post comments