2021-12-31

how to download an audio instead of play it in crefsharp(winform)

If I open an audio link using cefsharp browser, for example:

mp3

It will play it in the browser.

I am wondering how to make cefsharp download it if the link is an audio.

One solution is to check the link and use System.Net.WebClient to save the link to a file, but if the link isn't end with mp3,wav,...etc I still need to download it to check the file type.



from Recent Questions - Stack Overflow https://ift.tt/3mKOM3v
https://ift.tt/eA8V8J

No comments:

Post a Comment