Log in or register to post comments

black blink before the video start

August 25, 2020 - 10:45am #1

Hello everyone,



I have a video, and the target image, which is the first frame of the video. I can't make an immediate video launch - after the target was detected  a black rectangle flash before the video starts. It is very unpleasantly....   I think the video doesn't start immediately.  What can I do to avoid the black blink?



I use the script:



public class start_video_player : DefaultTrackableEventHandler

{

   public UnityEngine.Video.VideoPlayer videoPlayer;



    protected override void OnTrackingFound()

    {

        base.OnTrackingFound();

      

            videoPlayer.Play();  

    }

black blink before the video start

August 26, 2020 - 6:00am #3

It works!!!

Thank you very much!!!

black blink before the video start

August 25, 2020 - 1:56pm #2

Just tweak the materialVideo. In the shader (unlit transparent) select a totally transparent texture (I made a little texture...png with 16 x 16 pixels); So Before first frame loads there is no white or black flash.

Log in or register to post comments