在asp.net中使用ustream流式传输实时视频



我正在尝试创建一个简单的视频库,从ASP.net的特定Ustream用户的录制节目中提取视频。我一直在做一些研究并查看API文档,但似乎无法找出所有的示例都是用PHP编写的。

有人能帮我吗?如果可能的话,给我一些Ustream的Asp.net的代码或博客链接。

感谢

简单!看这里http://msdn.microsoft.com/en-us/library/ms525208(v=vs.90).aspx
您可以在经典ASP中使用ADODB.Stream(也适用于ASP.Net)
在asp:中写入

'Set the content type to the specific type that you are sending.
Response.ContentType = "video/mp4"
Const adTypeBinary = 1
Dim strFilePath
strFilePath = server.mappath("stream.mp4")
Set objStream = Server.CreateObject("ADODB.Stream")
objStream.Open
objStream.Type = adTypeBinary
objStream.LoadFromFile strFilePath
Response.BinaryWrite objStream.Read
objStream.Close
Set objStream = Nothing 

我认为这将对你有很大帮助。

最新更新