Jump to content
Sign in to follow this  
Oizopower

Stream audio using wmp.dll

Recommended Posts

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×