예제 #1
0
        private void Awake()
        {
            vrVideoPlayer = GetComponent <VRVideoPlayer>();

            if (videoTitle == null)
            {
                Debug.LogErrorFormat(LOG_FORMAT, "VideoTitle not attached!");
            }
            if (playButton == null)
            {
                Debug.LogErrorFormat(LOG_FORMAT, "PlayButton not attached!");
            }
            if (currentTime == null)
            {
                Debug.LogErrorFormat(LOG_FORMAT, "CurrentTime not attached!");
            }
            if (totalTime == null)
            {
                Debug.LogErrorFormat(LOG_FORMAT, "TotalTime not attached!");
            }
            if (volumeButton == null)
            {
                Debug.LogErrorFormat(LOG_FORMAT, "VolumeButton not attached!");
            }
            if (volumeBar == null)
            {
                Debug.LogErrorFormat(LOG_FORMAT, "VolumeBar not attached!");
            }
            if (normalButton == null)
            {
                Debug.LogErrorFormat(LOG_FORMAT, "NormalButton not attached!");
            }
            if (_180Button == null)
            {
                Debug.LogErrorFormat(LOG_FORMAT, "180Button not attached!");
            }
            if (_360Button == null)
            {
                Debug.LogErrorFormat(LOG_FORMAT, "360Button not attached!");
            }
            if (monoButton == null)
            {
                Debug.LogErrorFormat(LOG_FORMAT, "MonoButton not attached!");
            }
            if (leftRightButton == null)
            {
                Debug.LogErrorFormat(LOG_FORMAT, "LeftRightButton not attached!");
            }
            if (topBottomButton == null)
            {
                Debug.LogErrorFormat(LOG_FORMAT, "TopBottomButton not attached!");
            }
        }
예제 #2
0
 private void OnStarted(VRVideoPlayer player)
 {
     isVideoJumping = false;
     // set video title
     videoTitle.SetText(player.GetFileName());
     // set total time
     totalTime.SetTime(player.length);
     // toggle play button
     playButton.Toggle();
     // toggle render button
     SwitchVideoRendererButton(player.renderMode);
     // toggle volume button
     volumeButton.Toggle();
     // set volume bar
     volumeBar.SetProgress(vrVideoPlayer.GetAudioVolume(0));
 }
예제 #3
0
 private void OnLoopPointReached(VRVideoPlayer player)
 {
     // toggle play button
     playButton.Toggle();
 }
예제 #4
0
 private void Awake()
 {
     vrVideoPlayer = GetComponent <VRVideoPlayer>();
 }