Streaming audio from internet?
- Joakim Christiansen
- Addict

- Posts: 2452
- Joined: Wed Dec 22, 2004 4:12 pm
- Location: Norway
- Contact:
Streaming audio from internet?
Okay, just a quick question!
I'm making this internet radio player thing and was wondering if there is any quick way to stream audio from the net?
Like this link here http://209.143.37.195:8000 it works fine opening it in WMP. But I tried using MCI to stream it and I don't think it can stream from the internet, is there any other Windows API I could use?
Or do I really need to put WMP in a WebGadet and open it there? Or should I try with FMOD?
Any tips would be appreciated!
I'm making this internet radio player thing and was wondering if there is any quick way to stream audio from the net?
Like this link here http://209.143.37.195:8000 it works fine opening it in WMP. But I tried using MCI to stream it and I don't think it can stream from the internet, is there any other Windows API I could use?
Or do I really need to put WMP in a WebGadet and open it there? Or should I try with FMOD?
Any tips would be appreciated!
I like logic, hence I dislike humans but love computers.
Re: Streaming audio from internet?
Try with playsound. AFAIK it can play files from a website (i do once the test) si if you point it to the right url maybe it could work.Joakim Christiansen wrote:Okay, just a quick question!
I'm making this internet radio player thing and was wondering if there is any quick way to stream audio from the net?
Like this link here http://209.143.37.195:8000 it works fine opening it in WMP. But I tried using MCI to stream it and I don't think it can stream from the internet, is there any other Windows API I could use?
Or do I really need to put WMP in a WebGadet and open it there? Or should I try with FMOD?
Any tips would be appreciated!
Otherwise try BASS or FMOD, they are nice.
- Joakim Christiansen
- Addict

- Posts: 2452
- Joined: Wed Dec 22, 2004 4:12 pm
- Location: Norway
- Contact:
Code: Select all
InitSound()
LoadSound(0,"http://209.143.37.195:8000")
PlaySound(0)I hope BASS or FMOD is not too hard to learn.
I like logic, hence I dislike humans but love computers.
No hard. Both are great.Joakim Christiansen wrote:Can't say it works...Code: Select all
InitSound() LoadSound(0,"http://209.143.37.195:8000") PlaySound(0)
I hope BASS or FMOD is not too hard to learn.
Im testing both and find it very nice.
BTW http://209.143.37.195:8000 is NOT the url for the stream, you need to point to the REAL stream.
- Joakim Christiansen
- Addict

- Posts: 2452
- Joined: Wed Dec 22, 2004 4:12 pm
- Location: Norway
- Contact:
So how do I find the real stream? (this URL works when I open it in WMP you know...)ricardo wrote:BTW http://209.143.37.195:8000 is NOT the url for the stream, you need to point to the REAL stream.
I got this URL from a *.pls file.
I like logic, hence I dislike humans but love computers.
Search from .pls file the tags. I guess they point somewhere to the real stream.Joakim Christiansen wrote:So how do I find the real stream? (this URL works when I open it in WMP you know...)ricardo wrote:BTW http://209.143.37.195:8000 is NOT the url for the stream, you need to point to the REAL stream.
I got this URL from a *.pls file.
Open http://209.143.37.195:8000 on your broswer and you will see some webpage
- Joakim Christiansen
- Addict

- Posts: 2452
- Joined: Wed Dec 22, 2004 4:12 pm
- Location: Norway
- Contact:
This was the most real stream URL I got, I dug inside the radio stations pls file to find it. Why you get a webpage when you open it I guess is because it detects that you're opening it in a browser.
But anyway, know any other webpages where I can get links to radio streams?
But anyway, know any other webpages where I can get links to radio streams?
Last edited by Joakim Christiansen on Sun Jan 21, 2007 9:53 pm, edited 1 time in total.
I like logic, hence I dislike humans but love computers.
- Joakim Christiansen
- Addict

- Posts: 2452
- Joined: Wed Dec 22, 2004 4:12 pm
- Location: Norway
- Contact:
Well, I got it working.
I just used a WebGadget with a Windows Media Player object which I then gave the stream url and then I hide it so you'll never know.
I will post the source code for my Shoutcast Radio Player here when I'm done with it, and btw making a program like that is against their copyright laws...
I just used a WebGadget with a Windows Media Player object which I then gave the stream url and then I hide it so you'll never know.
I will post the source code for my Shoutcast Radio Player here when I'm done with it, and btw making a program like that is against their copyright laws...
I like logic, hence I dislike humans but love computers.
But for controling soundlevel, etc you need to use javascript.Joakim Christiansen wrote:Well, I got it working.
I just used a WebGadget with a Windows Media Player object which I then gave the stream url and then I hide it so you'll never know.
I will post the source code for my Shoutcast Radio Player here when I'm done with it, and btw making a program like that is against their copyright laws...
I guess BASS or FMOD solutions could be core complete, even with EQ and more stuff. Why don't geving a try?
- Joakim Christiansen
- Addict

- Posts: 2452
- Joined: Wed Dec 22, 2004 4:12 pm
- Location: Norway
- Contact: