在asp.net中使用ustream流媒体直播视频
我正在尝试创建一个简单的视频库,它使用ASP.net从特定Ustream用户的录制视频中提取视频。我一直在做一些研究并查看API文档,但似乎无法理解所有示例都是用PHP编写的 有人能帮我吗?如果可能的话,给我一些Asp.net和Ustream的代码或博客链接 非常感谢!看这里在asp.net中使用ustream流媒体直播视频,asp.net,streaming,video-streaming,Asp.net,Streaming,Video Streaming,我正在尝试创建一个简单的视频库,它使用ASP.net从特定Ustream用户的录制视频中提取视频。我一直在做一些研究并查看API文档,但似乎无法理解所有示例都是用PHP编写的 有人能帮我吗?如果可能的话,给我一些Asp.net和Ustream的代码或博客链接 非常感谢!看这里 您可以在中使用(也适用于ASP.Net) 在asp中编写以下内容: 'Set the content type to the specific type that you are sending. Response.Co
您可以在中使用(也适用于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
我想这会对你很有帮助