0

Im trying to loop a video in a vuforia AR app, my first idea was to split the video in 2 parts and play them separately but there is a gap that happens when the first video ends and the player loads the second video

Searching in the Code i found the play function in VideoPlayHelper.cs

/// <summary>
    /// Request a movie to be played either full screen or on texture and at a given position
    /// </summary>
    public bool Play(bool fullScreen, float seekPosition)
    {
        // We use Unity's built-in full screen movie player
        if (fullScreen)
        {
            if (mFilename == null)
            {
                return false;
            }

            Handheld.PlayFullScreenMovie(mFullScreenFilename, Color.black, FullScreenMovieControlMode.Full, FullScreenMovieScalingMode.AspectFit);
            return true;
        }
        else
        {
            return videoPlayerPlay(fullScreen, seekPosition);
        }
    }

Wich means that i can seek and play from a given position but i dont know how to find the seek position, is it a time value or a frame value?

Regards..

Chico3001
  • 1,853
  • 1
  • 22
  • 43

1 Answers1

0

I answer myself :)... It is a time value in seconds... so if you want to seek to 10.5 seconds then you just put that value:

video.play(false,10.5);
Chico3001
  • 1,853
  • 1
  • 22
  • 43