Programming Forums
User Name Password Register
 

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

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Jul 4th, 2007, 8:10 PM   #1
King
Professional Programmer
 
King's Avatar
 
Join Date: Jan 2006
Location: Ontario, Canada
Posts: 380
Rep Power: 3 King is on a distinguished road
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
 

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 3:36 PM
Streaming Sound Over a Socket King C++ 3 Apr 7th, 2007 6: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 11:55 AM
Python FTP Client Wrapper Sane Python 6 Jun 22nd, 2006 10:44 PM
Try capturing client text crashed!? Kam C++ 0 May 19th, 2005 2:31 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:49 AM.

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