Jump to content

Stream audio using wmp.dll


Guest Oizopower

Recommended Posts

Guest Oizopower

Hi There,

First of all I want to say that I’m kind of new to developing for WinMo.

My question is in short: Is it possible to program a application that can stream live music from the web

I have VS 2008 installed with the Windows Mobile SDK’s and using WMDC for my device testing.

In my project I have added the wmp.dll as a reference and is playing local files with success.

But my main goal is to play live audio from the web, I have searched for hours on google but I am not able to find a solution.

The code I use for playing local files is:

	  

WMPLib.WindowsMediaPlayer player = new WMPLib.WindowsMediaPlayer();

player.URL =  System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase)  + "\\LocalTest.mp3";

  player.settings.volume = 100;

  player.controls.play();

If i use the URL and put a http link in there, then it isnt plating anything.

Does someone have some experience with this, and can send me in the right direction?

Kindly regards,

Oizopower

Edited by Oizopower
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.