I am trying to play media files client-side on my ASP.Net website. I am using C# for the pages, so in my aspx.cs file, on certain button click event handlers I want to play music. So included the Windows Media Player dll and it worked to play music:
WindowsMediaPlayer wmp = new WindowsMediaPlayer();
wmp.URL = soundFile;
wmp.controls.play();
When I tested this page running everything locally everything seemed to be working buetifly. But once I moved the pages to a server and viewed them on another machine, the sound was playing on the server, not the client browser (as you might have guessed). So is there an easy way I can just tell this to play on the client? If not, can anyone give me some direction to script it in the client and still get things to play on the events I want it to?
Thanks in advance.