Log in or register to post comments

VIdeo Playback on Image Target - blank mesh before video starts playing

July 25, 2018 - 5:52am #1

Hi, I'm using Vuforia for an AR app that plays video with alpha over an ImageTarget. I used Vuforia Video Playback sample.

The problem I'm having is that as the Target is recognized Video isn't playing right away but for a few seconds before the video all I can see is blank mesh the size of a video.

You can take a look at this here https://youtu.be/99BCQPLqH9Y

On android it takes about three seconds before video starts playing, in unity play like half a second.

Does anybody know why and how do i fix it ?

Thanks

VIdeo Playback on Image Target - blank mesh before video starts playing

July 26, 2018 - 12:11am #3

Yes it'đ Unity. By reencoding you mean the transcode option in video settings? 

And I tried VideoPlayer.isPrepared but it didn't work, maybe I was using it wrong. 



I used it like this in VideoController.cs



public void Play()

    {

        videoPlayer.Prepare();

        if(videoPlayer.isPrepared)

        {

           Debug.Log("Play Video");

           PauseAudio(false);

           videoPlayer.Play();

           ShowPlayButton(false);

        }

    }

VIdeo Playback on Image Target - blank mesh before video starts playing

July 25, 2018 - 8:23am #2

Is this Unity?  If so, are you using VideoPlayer.isPrepared callback?  Another thing to try is letting Unity reencode the video, I've found this happens with some video codecs.

Log in or register to post comments