Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 4th, 2007, 7:10 PM   #1
King
Professional Programmer
 
King's Avatar
 
Join Date: Jan 2006
Location: Ontario, Canada
Posts: 371
Rep Power: 0 King is an unknown quantity at this point
Question 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();
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.
__________________
I am Addicted to Linux!
King is offline   Reply With Quote
Old Jul 5th, 2007, 11:25 PM   #2
King
Professional Programmer
 
King's Avatar
 
Join Date: Jan 2006
Location: Ontario, Canada
Posts: 371
Rep Power: 0 King is an unknown quantity at this point
No one knows how to play media files client-side?
__________________
I am Addicted to Linux!
King is offline   Reply With Quote
Old Jul 6th, 2007, 2:05 AM   #3
lectricpharaoh
Caffeinated Neural Net
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 1,005
Rep Power: 5 lectricpharaoh will become famous soon enough
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.
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is offline   Reply With Quote
Old Jul 6th, 2007, 11:47 AM   #4
xavier
Professional Programmer
 
xavier's Avatar
 
Join Date: Oct 2004
Location: .ro
Posts: 379
Rep Power: 4 xavier is on a distinguished road
Send a message via Yahoo to xavier
You could just use this: http://www.xspf.org/quickstart/ and http://musicplayer.sourceforge.net/
I really liked the idea.
__________________
Don't take life too seriously, it's not permanent !
xavier is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vista Sound Driver Issues (Creative Cards) Ghost Coder's Corner Lounge 3 May 31st, 2007 2:36 PM
Streaming Sound Over a Socket King C++ 3 Apr 7th, 2007 5:29 PM
How can i do an include ??? like a server side include but it has to be client side paulchwd JavaScript and Client-Side Browser Scripting 2 Nov 12th, 2006 10:55 AM
Python FTP Client Wrapper Sane Python 6 Jun 22nd, 2006 9:44 PM
Try capturing client text crashed!? Kam C++ 0 May 19th, 2005 1:31 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:31 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC