Intetnet Radio Using C sharp

Here is a simple Tutorial for Streaming Radio on internet Trough Sharp Windows form application.
First of all  create a new project  by Clicking on File > New Project >Windows Form application.

Name your project and click on ok. Now customize your form as per your needs.Now you have to add a Wmpalyer (Windows Media Player )to your Form. For this You have to add a Reference in your project.


Now you have to if you have a look on the above Image i have 5 Radio buttons.
  • Radio Pakistan
  • Radio Buraq
  • Radio Sama
  • Hum FM
  • Bollywood Masti
Now  You have to set URL of each radio  station  to start Streaming Trough Windows Media Player.

Radio Stations used in this Program are as follow
  • Radio Pakistan URL =http://193.218.160.20:80/kismat/
  • Radio Buraq URL = http://38.96.148.106:8088/
  • Radio Sama URL=http://38.96.148.106:8098/;stream.nsv
  • Radio HUM FM URL=mms://65.19.131.153/humfm-humfm-32
  • Radio Bollywood  Masti URL=http://50.7.70.66:8485/
Now on form load Event Set which radio station you want to  stream(play) by using if condition  as follow

if(radio_pakistan.Checked=true)
{
          wmp.Url="http://193.218.160.20:80/kismat/ ";


} else if (radio_buraq.Checked)

{
     wmp.URL= http://38.96.148.106:8088/;

} else if(radio_sama.Checked)
{
    wmp.URL=http://38.96.148.106:8098/;stream.nsv;

}  else if (Radio_humFm.Checked)

{
   wmp.URL=mms://65.19.131.153/humfm-humfm-32;

} else if(radio_BM.Checked)

{

 wmp.URL=http://50.7.70.66:8485/;

}

Now run your program, Go trough all radio buttons to check its working or not before  deploying your application
.

No comments:

Post a Comment

Sending SMS Via Windows Form Application Using any Android Smart Phone  Source Code  using System ; using System . C...