private void Run() { if (!Stream.CanSeek) { throw new ArgumentException("The stream is not seekable"); } _bgWorker?.SendCommand(BgWorkerCommand.Play); }
private void Run() { if (!_stream.CanSeek) { throw new ArgumentException("The stream is not seekable"); } AvaloniaLocator.Current.GetService <IRenderTimer>().Tick += RenderTick; _bgWorker?.SendCommand(BgWorkerCommand.Play); }