I noticed in the NAudio Demo from the latest version of NAudio that if Filename is empty, then it opens a fileopendialog. So if I paste a http link in that window and click OK, I've noticed that the FileName string looks something like this:
"C:\Users\User\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.IE5\2FO1NTK2\20s[1].mp3"
How does this exactly happen? I don't want an OpenFileDialog because the path I want to play is already stated elsewhere. And in my case, I use a string which looks something like this "http://domainname.com/file.mp3"
This creates an error stating that URL is not supported. So I guess there's something I'm missing here?
Edit: Inserting the PlayMp3FromUrl gives me this error in WaveOut:
'NAudio.Wave.WaveOut' does not contain a constructor that takes '3' arguments' This is at line "using (WaveOut waveOut = new WaveOut(0, 500, null))" I tried to just remove all of the arguments, leaving it ()), and that compiles. But the sound playback seems to start for a microsecond or something. And then everything freezes. I've tried with various arguments and none seem to work. I guess it's got something to do with the arguments?