我必须编写一个ASP.NET Web API来从服务器目录中检索视频或音频文件,并将其流式传输到客户端应用程序。 我完全是流媒体领域的新手,我想知道服务器是否需要任何基础设施? 如果没有,那么任何人都可以指导我一些样品或者可以提供一些代码来开始吗? 我根本找不到任何关于它的信息。
谢谢
I have to write an ASP.NET Web API to retrieve a video or audio file from the server directory and stream it to a client app. I am totally a novice in the streaming area, i wanted to know if the server needs any infrastructure for it? If not then can anyone direct me towards some samples or can provide me with some code to start with? I haven't been able to find any information about it at all.
Thanks
最满意答案
您可以直接在ASP.NET Web API项目中实现视频流,几乎不需要IIS的特殊配置。
检查此示例如何在Web API中处理straming http://weblogs.asp.net/andresv/archive/2012/12/12/asynchronous-streaming-in-asp-net-webapi.aspx
另请阅读本文,了解有关IIS配置和流式利用的一些有用详细信息。
http://www.strathweb.com/2012/09/dealing-with-large-files-in-asp-net-web-api/
You can implement video streaming directly in your ASP.NET Web API project almost without special configuration of IIS.
Check this example how to handle with straming in Web API http://weblogs.asp.net/andresv/archive/2012/12/12/asynchronous-streaming-in-asp-net-webapi.aspx
Also read this article for some useful details of IIS configuration and utilization for streaming.
http://www.strathweb.com/2012/09/dealing-with-large-files-in-asp-net-web-api/
更多推荐
发布评论