Log in or register to post comments

Videoplayback initialize issue

July 9, 2015 - 11:38pm #1

I've integrated cloud reco and video playback app then run the app, i'm getting below error on the line.

 

void OnRenderObject()
    {
        if (mAppPaused) return;
 
        if (!mIsInited)
        {
            // Initialize the video player
            if (mVideoPlayer.Init() == false)                  // Here i'm getting error and the point indicating this line of error
            {
                Debug.Log("Could not initialize video player");
                HandleStateChange(VideoPlayerHelper.MediaState.ERROR);
                this.enabled = false;
                return;
            }
 
NullReferenceException: Object reference not set to an instance of an object
VideoPlaybackBehaviour.OnRenderObject () (at Assets/Vuforia Video Playback/Scripts/VideoPlaybackBehaviour.cs:168)
 
 
I've changed void start into publi void startPlay() for reference cloudreco to play the video. But getting this error. How to resolve this error?

 

Log in or register to post comments