Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have to develop an application to play audio files available in different server.
suppose my application is hosted in Server A.and we have audio files to play available in Server B.

so how to connect to server B programatically using C# and ASP.NET and play that files.

please respond quickly
Thank You very much
D Srinivas
Posted

1 solution

Sooo....what are you using on the client to play the audio?? Your ASP.NET code has nothing to do with this as ASP.NET code runs entirely on the web server, not on the client.

If you're not forcing the client to use some component to play the audio, you can let the client chose what player it wants to use. In that case, you just need to send the audio file content with the appropriate MIME type. There's tons of example on how to do this all over the web.
 
Share this answer
 
Comments
srinvas 19-Feb-13 18:00pm    
my question is about how to connect to another server and use the files in the server.
please give one example how to connect to remote server programatically and use the files in the server.please help me.thanks
Dave Kreskowiak 19-Feb-13 19:59pm    
You're question is too vague. I already told you what you have to do. You give no examples or sufficient detail of what you're trying to do. I already told you how what you have to do to send the data to a client to get the client to play it.
_Amy 19-Feb-13 23:51pm    
+5! Exactly.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900