使用Asp.Net的Web API视频流给客户端应用程序 [英] Video Streaming to a client app using Asp.Net Web API

查看:159
本文介绍了使用Asp.Net的Web API视频流给客户端应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须写一个ASP.NET Web API来从服务器检索目录中的视频或音频文件,并将其传输到客户端应用程序。我完全在流媒体领域一个新手,我想知道,如果服务器需要它的任何基础设施?如果没有,那么任何人都可以直接我对一些样品,也可以提供给我一些code下手?我一直无法在所有找到关于它的任何信息。

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.

感谢

推荐答案

您可以实现视频直接在您的ASP.NET Web API项目流,几乎没有IIS的特殊配置。

You can implement video streaming directly in your ASP.NET Web API project almost without special configuration of IIS.

检查本例中如何处理与网页API straming
<一href=\"http://weblogs.asp.net/andresv/archive/2012/12/12/asynchronous-streaming-in-asp-net-webapi.aspx\">http://weblogs.asp.net/andresv/archive/2012/12/12/asynchronous-streaming-in-asp-net-webapi.aspx

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

另请阅读这篇文章的IIS配置和利用流媒体的一些有用的细节。

Also read this article for some useful details of IIS configuration and utilization for streaming.

<一个href=\"http://www.strathweb.com/2012/09/dealing-with-large-files-in-asp-net-web-api/\">http://www.strathweb.com/2012/09/dealing-with-large-files-in-asp-net-web-api/

这篇关于使用Asp.Net的Web API视频流给客户端应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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