Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
im making a discord music bot that streams from youtube using youtube-dl and ffmpeg.
the issue is that after i play one song and the second one starts to play the song stops and writes https://prnt.sc/g2gh8j. im quite new to ffmpeg so i dont realy know how to handle it
i have this command
` if (Program.current_s == null && Program.audioClient != null)
{
SendAsync(Program.audioClient, choice);
Program.playlist = new List();
Program.playlist_nammes = new List();
Program.playlist_nammes.Add(title);
delete_messages(1);
await ReplyAsync("now playing: " + title);
await Task.Delay(TimeSpan.FromSeconds(Program.duration[0] + 3));
Program.output.Close();
Program.current_s.Kill();
}
`private Process CreateStream(string path)
{
and this exited event
` private async void WhenSongEnds(object sender, EventArgs e)
{
Console.WriteLine("done with song");
`