简体   繁体   English

将浏览器嵌入Java应用程序以获取视频流

[英]Embedding a browser into Java Application for getting video stream

Is there some sort of library that I can use to embed a browser into a JPanel so that I can watch a stream from twitch.tv or ustream.tv?? 是否可以使用某种库将浏览器嵌入到JPanel中,以便可以观看来自twitch.tv或ustream.tv的流?

I've looked around and found http://www.developer.com/java/ent/article.php/3644196/Eclipse-Tip-Create-Rich-User-Interfaces-with-the-HTML-Browser-Widget.htm 我环顾四周,发现http://www.developer.com/java/ent/article.php/3644196/Eclipse-Tip-Create-Rich-User-Interfaces-with-the-HTML-Browser-Widget.htm

but it looks like it's only HTML compatible. 但它似乎仅与HTML兼容。

Depends what you want to see and how it is streamed: 取决于您想看什么以及如何流式传输:

You wants to see the web page twitch.tv: 您想查看网页twitch.tv:

You can use the SWT Browser widget, a 3rd party Swing HTMLPanel or going with JavaFX2. 您可以使用SWT浏览器窗口小部件,第三者Swing HTMLPanel或使用JavaFX2。

You wants to see only the stream: 您只想看流:

If the stream is Flash I think there is nothing to do. 如果流是Flash,我认为没有任何事可做。 If it is HTML5 you can go with JavaFX2. 如果是HTML5,则可以使用JavaFX2。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM