调整浏览器中视频的播放速度
enounce.com 上有一个程序,它可以提高浏览器中视频的播放速度。我认为互联网上 95% 的视频都在 Flash 上运行,因此这个工具很有用。我想知道这个程序是如何创建的。也许他们修改了浏览器中的html源代码?也许它会查找浏览器上正在播放的 swf 视频,并在该 html 元素上注入一些 JavaScript 以提高速度。我一直在 Google 上进行研究,我认为可以使用 JavaScript 来改变视频的播放速度。如果它不修改 html 页面,那么至少知道如何实现这一点会很好。此外,如果视频在您的浏览器上播放,我相信它必须保存在您计算机的某个位置。这就是为什么您可以在视频下载完成后来回搜索。为什么几乎不可能找到它,而获取该视频的唯一方法是使用包嗅探器捕获包?无论如何,这不是我的问题,我只是很好奇该程序如何实现它所做的事情。它可以加快一切速度,甚至包括潘多拉歌曲。
There is a program at enounce.com that it will increase the play speed of a video in a browser. I think that 95% of videos on the internet run on flash therefore this tool can be useful. I am wondering how that program was created. Maybe they modify the html source in the browser? perhaps it looks for the swf video playing on your browser and it injects some JavaScript on that html element to increase the speed. I been researching on Google and I think it is possible to alter the playback speed of a video with JavaScript. If it is not modifying the html page then it will be nice to at least know how this can be achieved. Also if a video plays on your browser it has to be saved somewhere in your computer I believe. That's why you can seek back and forth once the video finished downloading. why is it that it is almost impossible to find it and the only way of getting that video will be by capturing the packages with a package sniffer? anyways that is not my question I am just really curious on how that program achieves doing what it does. it speeds up everything even Pandora songs.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
MySpeed 似乎拦截了从服务器进入浏览器中 Flash 播放器的媒体流。它动态改变速度,并将结果发送到 Flash 播放器。
PS:如果您需要控制自己视频的播放速度,我建议您使用 VLC 浏览器插件或 QuickTime 播放器,它们也具有非常好的速度控制功能(来自 Javascript)。或者您可以使用 HTML5
Afaik,基于 Flash 的播放器(例如 Longtail/JWPlayer 和 Nonverbla)对此没有很好的支持。
MySpeed seems to intercept the media stream coming from the server into the Flash player that sits in your browser. It changes the speed on the fly, and sends the result to the Flash player.
PS: If you need to control the playing speed of your own videos I recommend looking into the VLC Browser Plug-in, or the QuickTime player, which also has very good speed control features (from Javascript). Or you could use the HTML5 <video> tag.
Afaik, Flash-based players like Longtail/JWPlayer and Nonverbla don't have very good support for this.