![]() |
Playing Sound Client-Side
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();Thanks in advance. |
No one knows how to play media files client-side?
|
The reason they play on the server is because, uhm, that's where the code's running. To play them client-side, you'd need to use something like Javascript or VBscript, assuming those even have such functionality. Barring that, you'd need to embed a multimedia object in the HTML output, or use a technology that's designed for interactive multimedia over HTTP, like Flash.
|
You could just use this: http://www.xspf.org/quickstart/ and http://musicplayer.sourceforge.net/
I really liked the idea. |
| All times are GMT -5. The time now is 2:49 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC