Exemplo n.º 1
0
    public virtual void UpdateFrame()
    {
        if (Input.GetKeyDown(_captureKey))
        {
            ToggleCapture();
        }

        if (_handle >= 0 && !_paused)
        {
            _numDroppedFrames        = AVProMovieCapturePlugin.GetNumDroppedFrames(_handle);
            _numDroppedEncoderFrames = AVProMovieCapturePlugin.GetNumDroppedEncoderFrames(_handle);
            _numEncodedFrames        = AVProMovieCapturePlugin.GetNumEncodedFrames(_handle);
            _totalEncodedSeconds     = AVProMovieCapturePlugin.GetEncodedSeconds(_handle);
        }

        if (_queuedStopCapture)
        {
            _queuedStopCapture  = false;
            _queuedStartCapture = false;
            StopCapture();
        }
        if (_queuedStartCapture)
        {
            _queuedStartCapture = false;
            StartCapture();
        }
    }