#Video Player showing white frame before switching video clips

1 messages · Page 1 of 1 (latest)

hollow yew
#

Hi Fellow Developers, I find myself in a predicament where while switching video clips through code the video player shows a frame of white sprite in between switching clips.

private void Start()
   {
      StartCoroutine(BisonSequence());
   }

   private IEnumerator BisonSequence()
   {
      var appearDelay = Random.Range(5f, 7f);
      yield return new WaitForSeconds(appearDelay);
      bisonPlayer.clip = bisonIntro;
      bisonPlayer.Play();
      yield return new WaitForSeconds((float)bisonIntro.length);
      bisonPlayer.clip = bisonIdle;
      bisonPlayer.Play();
   }

I have come across this issue many times but could not find a solution any help is appreciated folks

dreamy wave
#

yes that will happen as you are waiting for some time to play the next clip. what is your requirement here? do you want to create a fade or have the next clip just play immediately?

hollow yew
#

Hello @dreamy wave , I want to play the next clip after the first clip ends