如何播放来自不同服务器的音频文件 [英] how to play audio files from different server

查看:104
本文介绍了如何播放来自不同服务器的音频文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我必须开发一个应用程序来播放不同服务器中可用的音频文件。

假设我的应用程序托管在服务器A.我们有服务器B中可用的音频文件。



所以如何使用C#和ASP.NET以编程方式连接服务器B并播放那个文件。



请快速回复

非常感谢

D Srinivas

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

推荐答案

Sooo ....你在客户端使用什么来播放音频?您的ASP.NET代码与此无关,因为ASP.NET代码完全在Web服务器上运行,而不是在客户端上运行。



如果你不是强制客户端使用某些组件播放音频,您可以让客户选择它想要使用的播放器。在这种情况下,您只需要发送具有适当MIME类型的音频文件内容。关于如何在整个网络上执行此操作的例子很多。
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.


这篇关于如何播放来自不同服务器的音频文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆