Silverlight and Shoutcast!
Finally a solution!!!!!!!! How can we stream a shoutcast radio via a Silverlight application?
Well in 6 steps...
1. Open Expression Blend
2. Create a Project
3. Add a media element
4. Add the code below at the cs (or vb) file
public Page()
{
// Required to initialize variables
InitializeComponent();
this.Loaded += new RoutedEventHandler(Page_Loaded);
}
void Page_Loaded(object sender, RoutedEventArgs e)
{
try
{
myElem.Source = new Uri("http://mystation:port/;");
myElem.Play();
}
catch (Exception ex)
{
}
}
5. We put mms instead of http and at the end "/;" without the quotes
6. We hit F5 and listen our radio!!!
Enjoy!
Edit : it works with http really good but i never tried until now... So no need for mms at the beginning of the URL.