Пример #1
0
 public async Task StopStream()
 {
     if (_pipeline != null)
     {
         await Task.Run(() => _pipeline.Stop());
     }
 }
Пример #2
0
        public void Seek(DateTime seekTo)
        {
            lock (PlayerLock)
            {
                if (_transformSource == null)
                {
                    throw new ArgumentException("Unable to seek before starting player");
                }

                if (_isLive)
                {
                    _isLive = false;
                    _pipeline.SetFlushing(true);
                    _pipeline.Stop();

                    _pipeline = _config.PipelineFactory.CreatePipeline(_transformSource, _isLive);
                    _pipeline.Start();
                }

                _source.Seek(seekTo);
            }
        }
Пример #3
0
        protected virtual void Dispose(bool disposing)
        {
            if (!_disposed)
            {
                if (disposing)
                {
                    _initialized = false;
                }

                _pipeline?.Stop();
                _source?.Dispose();

                _disposed = true;
            }
        }
 public void Stop()
 {
     _pipeline.Stop();
     _teeSink.Stop();
 }
 public override void Stop()
 {
     _pipeline.Stop();
 }