question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Please write the program for me

See original GitHub issue

Hey, first of all i would thank you for such a great work! So i used VideoLibrary but since i faced some trouble with downloading exact video i came here… Please can u edit the following code to download only the sound as mp3 and to save it on desktop, i want to download a video in the fastest way to play it’s sound (i would prefer to download it at 480p quality or something near) Thanks in advance!

var url = "https://www.youtube.com/watch?v=Euz1F0MG494"; var id = YoutubeClient.ParseVideoId(url); // "bnsUkE8i0tU" var client = new YoutubeClient(); var streamInfoSet = await client.GetVideoMediaStreamInfosAsync("bnsUkE8i0tU"); var streamInfo = streamInfoSet.Muxed.WithHighestVideoQuality(); var ext = streamInfo.Container.GetFileExtension(); await client.DownloadMediaStreamAsync(streamInfo, $"downloaded_video.{ext}"); MessageBox.Show("Done");

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Luke1998xcommented, May 9, 2018

One last thing, how can i save it on desktop (it would be better if i can play it without any need to wait for that), i nearly figured that but it says access to path is denied!

2reactions
stefancreed37commented, May 9, 2018

I’m working on this project for 3 hours, and I haven’t tried to change the quality of the video. But this Issue seems to be interesting, I want to know how to change quality too…

Read more comments on GitHub >

github_iconTop Results From Across the Web

How would I program my computer to write programs?
Would it be possible to build a program that you can order it to write any program? The process you're describing is called...
Read more >
How to Write a Program: Coding, Testing & Debugging
Creating a software program involves writing code, testing code and fixing any parts of the code that are wrong, or debugging.
Read more >
How to use ChatGPT to write code
Describe ten different open source AI libraries (and the languages they work with) that I can use to generate a summary of the...
Read more >
Solved can you write this program for me in java here is the
Personal Information Write a program that displays the following information, each on a separate line: - Your name - Your address, with city,...
Read more >
please write for me the C++ code to run this program
Question: please write for me the C++ code to run this program if you don't know the answer please don't answer and let...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found