使用Asp.Net Web API将视频流传输到客户端应用程序(Video Streaming to a client app using Asp.Net Web API)

编程入门 行业动态 更新时间:2024-10-22 05:14:06
使用Asp.Net Web API将视频流传输到客户端应用程序(Video Streaming to a client app using Asp.Net Web API)

我必须编写一个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/

更多推荐

本文发布于:2023-07-23 18:42:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1235682.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   客户端   视频   API   Web

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!