Java:如何拦截视频和音频流?
有没有任何 Java 库可以帮助拦截通过浏览器发送的视频和音频流?
例如,视频开始使用某些 Flash 服务器通过 Flash 播放器加载,Java 应用程序将侦听视频/音频流并捕获并将其写入磁盘上的视频。
is there any Java library out there that can help intercept video and audio streams being sent through the browser?
So for example, a video starts loading through a flash player using some Flash server, the java application would listen for video/audio stream and capture and write it to video on the disk.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
也许已经很晚了,但是Scince Google把我带到了这里,我会回答这个问题。
如果要“拦截”数据流,那么您可以越接近Charlesproxy:
”使开发人员能够在其机器和Internet之间查看所有HTTP和SSL / HTTPS流量的代理。
您将不得不使用浏览器配置来介绍,但应该解决问题。
这是一个痛苦,不知道这是否有帮助。
Maybe its to late, but scince google got me here I will answer this.
If you want to "Intercept" the data streams, the closer you can get to this is charlesproxy:
http://www.charlesproxy.com/download/
which is a HTTP proxy / HTTP monitor / Reverse Proxy that enables a developer to view all of the HTTP and SSL / HTTPS traffic between their machine and the Internet.
You will have to play around with your browser configuration but it should do the trick.
its an aproach, dont know if this helps.
简单的答案是否定的。
可能没有库中的库中的任何语言。 (我从未听说过的操作系统允许一个过程可以在另一个过程的插座级数据流上窃取。)
从理论上讲,您可以使用网络流量分析仪(例如Wireshark)进行此操作小姐的东西,结果将是损坏的视频 /音频流。
我认为唯一有机会可靠地工作的方法是修改浏览器和/或插件以捕获数据流。
The simple answer is no.
There is probably not a library to do it in any language. (No operating system I've ever heard of allows one process to snoop on the socket-level data streams of another process.)
In theory you could do this with a network traffic analyser (e.g. wireshark) but the chances are that you'd miss stuff and the result would be a corrupted video / audio stream.
The only approach that I think would have a chance of working reliably would be to modify the browser and/or the plugins to capture the data streams.