如何第一次下载视频及其在本地的商店 [英] how to download video first time and its store on local

查看:72
本文介绍了如何第一次下载视频及其在本地的商店的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,

我的要求很小。我什么都不知道。请分享你有价值的想法来制定这个要求。

我开发了一个像视频播放这样的网络应用程序。当我点击图像播放视频时,它将下载本地文件夹并播放..当我点击图像时,它将直接播放本地文件夹视频,无需流动或下载。



谢谢

Venkat

Hi Friends,
i have small requirement.i dont have any idea. please share u r valuable ideas to develop this requirement.
i have develop one web app like video play. when i click image to play the video it will download local folder and play..when ever i click the image it will play local folder video directcly with out streming or download.

Thanks
Venkat

推荐答案

这完全取决于视频的传送方式。在许多情况下,与Youtube和更多情况一样,使用HTTP,因此您可以使用类 System.Net.HttpWebRequest

< a href =http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest%28v=vs.110%29.aspx> http://msdn.microsoft.com/en-us /library/system.net.httpwebrequest%28v=vs.110%29.aspx [ ^ ]。



发送请求的内容是问题。对于Yourtube,问题是要找到正确的URL,但是可能需要所有类型的特定HTTP请求数据,这可以防止下载,实际上只是为了让大多数人下载困难。一些HTTP间谍应用程序/插件可以提供很多帮助。通常,视频以块的形式流式传输,整个视频URL可能存在也可能不存在。如果它不存在或未知,你将必须发送一组请求并将所有块组合在一起。



但是有些情况下有些不同,有时甚至是专有的使用了不断变化的流媒体协议(一个噩梦案例:微软的MMS)。然后......这取决于。可能是一个严重的问题。



-SA
It all depends on how the video is delivered. In many cases, like with Youtube and many more cases, HTTP is used, so you can use the class System.Net.HttpWebRequest:
http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest%28v=vs.110%29.aspx[^].

What to send the request is the issue. In case of Yourtube, the issue is to find out just the right URL, but it's possible to require all kind of specific HTTP request data, which can be done to prevent downloading, in fact, just to make downloading difficult for most people. Some HTTP spy application/plug-in can help a lot. Often, the video is streamed in chunks, and whole-video URL may or may not exist. If it does not exist or unknown, you will have to send set of request and assemble all chunks together.

But there are cases when some different, sometimes even proprietary and ever-changing streaming protocol is used (a nightmare case: Microsoft's MMS). Then… it depends. Could be a serious problem.

—SA


这篇关于如何第一次下载视频及其在本地的商店的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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