private void Observer_VideoSampleReady(object sender, Events.VideoSampleReadyArgs e)
        {
            _timeIndex = _watch.Elapsed;
            var sample = new VideoSample(e.Message.Data, _timeIndex, _watch.Elapsed - _timeIndex);

            if (!_watch.IsRunning)
            {
                _watch.Start();
            }

            _samples.Enqueue(sample);
        }
Example #2
0
        private void Observer_VideoSampleReady(object sender, Events.VideoSampleReadyArgs e)
        {
            this.timeIndex = this.watch.Elapsed;
            var sample = new VideoSample(e.Message.Data, this.timeIndex, this.watch.Elapsed - this.timeIndex);

            if (!this.watch.IsRunning)
            {
                this.watch.Start();
            }

            this.samples.Enqueue(sample);
        }