Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET
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 19-Feb-13 10:04am
srinvas685

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Comments
srinvas at 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 at 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 at 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)

  Print Answers RSS
0 DamithSL 445
1 Maciej Los 278
2 OriginalGriff 229
3 Zoltán Zörgő 190
4 BillWoodruff 160
0 OriginalGriff 7,934
1 DamithSL 6,084
2 Sergey Alexandrovich Kryukov 5,449
3 Maciej Los 5,174
4 Kornfeld Eliyahu Peter 4,539


Advertise | Privacy | Mobile
Web01 | 2.8.141223.1 | Last Updated 19 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100