Beispiel #1
0
        public void OnUpdate()
        {
            if (State != MediaState.Playing)
            {
                return;
            }
            if (Time.GameTimer.TotalMilliseconds - _startTime < 800)
            {
                return;
            }
            if (!CanRunOnThisArchitecture)
            {
                return;
            }
            _elapsedFrameTime += Time.LastDelta * Time.TimeScale;

            if (_theoraVideo != null && CanRunOnThisArchitecture)
            {
                _theoraVideo.UpdateVideo(_elapsedFrameTime);
                if (_theoraVideo.IsFinished)
                {
                    Stop();
                }
            }
        }