예제 #1
0
        private void Run()
        {
            if (!Stream.CanSeek)
            {
                throw new ArgumentException("The stream is not seekable");
            }

            _bgWorker?.SendCommand(BgWorkerCommand.Play);
        }
예제 #2
0
        private void Run()
        {
            if (!_stream.CanSeek)
            {
                throw new ArgumentException("The stream is not seekable");
            }

            AvaloniaLocator.Current.GetService <IRenderTimer>().Tick += RenderTick;
            _bgWorker?.SendCommand(BgWorkerCommand.Play);
        }