Jump to content


Stream audio using wmp.dll

- - - - -

  • Please log in to reply
No replies to this topic

#1
Oizopower

Oizopower

    Newbie

  • Members
  • Pip
  • 28 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, 13 January 2009 - 11:44 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users