Log in or register to post comments

Pre-load video?

October 21, 2019 - 8:01pm #1

I have my Unity App set to play a video when Vuforia detects an image.

 

It works great other than the first time Vuforia detects the image I see the white quad displayed while the video is loading.

 

It's only a split second but it really does kill the user experience. I don't mind the delay it's really just seeing the white square that bugs me.

So, I suppose there are a few options.... 

1) Preload the video, this could be an issue as I have 30 different videos to play based on images in a book.

2) Make the quad transparent until the video is loaded.

 

I have no idea how to do either :-)

 

Any thoughts?

Thanks.

 

Phil

 

 

Pre-load video?

November 7, 2019 - 7:47pm #6

Thanks @ioio I'll give that a shot, it sounds exactly what I'm wanting.

 

Cheers

 

Phil

 

 

 

Pre-load video?

November 5, 2019 - 2:13am #5

Just tweak the "video Material"...

choose "unlit transparent" shader and load a little empty texture(16pix x 16 pix totally transparent) in it.

So before video is completely loaded it only shows a transparent quad.

It works great for me on mobile.

Pre-load video?

November 5, 2019 - 1:03am #4

Hi,

Thank you for the video, below is the link to the core samples: https://assetstore.unity.com/packages/templates/packs/vuforia-core-samples-99026

Vuforia only handles Detection and Tracking, Rendering is done by Unity. My guess is that the video is not fully "prepared" for streaming and you get the white frame.

Could you please try and add https://docs.unity3d.com/ScriptReference/Video.VideoPlayer-waitForFirstFrame.html and give it a try?

Thank you.

Vuforia Engine Support

Pre-load video?

October 29, 2019 - 10:02am #3

Hi, attached is a screen shot of my quad to see if that gives you any ideas and here is a link to a video showing the issue.

 

As soon as my phone detects the image target you see it show the white quad for a split second before the video starts.

 

https://www.dropbox.com/s/2in3qp6u6ty03cm/vuforia.mov?dl=0

 

Also, can you send me a link to the core apps you mentioned in your reply.

 

Thanks for any advice.

 

Phil

Pre-load video?

October 24, 2019 - 4:23am #2

Hi,

In the core sample apps we provide the video with the Assets and there is no delay after clicking the Play button. Scene: 3 - ImageTargets

Once consideration that pops to mind when considering the pre-loading of the 30 videos is size, depending on the quality etc.

Could you please let me know how is your current setup? are you running the videos via url? and please provide a print-screen with the quad to better understand the issue.

Thank you.

Vuforia Engine Support

Log in or register to post comments