public async Task StopStream() { if (_pipeline != null) { await Task.Run(() => _pipeline.Stop()); } }
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); } }
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(); }