public async Task Can_run_command_async() { var output = await ShellRunner.RunCommandAsync("youtube-dl", "-e", "--get-duration", "-g", "https://www.youtube.com/watch?v=guaEK62mxno"); var lines = output.Split("\n"); }
private async Task StartInternalAsync(CancellationToken token) { while (!token.IsCancellationRequested) { if (playbackQueue.TryTake(out var content)) { await ShellRunner.RunCommandAsync("omxplayer", content.Source.ToString()); } else { await Task.Delay(2000, token); } } }