通过 RTP 传输 Java Swing 组件
目前,我正在寻找一个选项来通过 RTP 将 JPanel 的内容流式传输到接收客户端。例如,JPanel 将包含一个 JFreeChart 和一些应显示在远程客户端播放器上的标签(实际上它恰好是一个支持 RTP 的演示软件)。
是否有任何库允许从 UI 组件生成此类流并随后通过 RTP 进行传输?
感谢您的任何提示和建议 KC
附注: 回答 Qwerky 的问题:仅应传输其视觉表示(例如其图像)。
Currently, I am looking for an option to stream the contents of a JPanel over RTP to a receiving client. The JPanel would e.g. contain a JFreeChart and some labels that should be displayed on a remote client player (which in fact happens to be a presentation software with RTP support).
Are there any libraries that would allow such a stream generation from UI components and its subsequent transmission over RTP?
Thanks for any hints and advices
KC
P.S.:
In response to Qwerky's question: Only their visual representation (e.g. their image) should be transmitted.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最后,我最终实现了一个基于 JMF 的组件流包:
JpegHelper:
ComponentBufferStream:
ComponentDataSource:
以及其他一些帮助器类,这达到了目的。
Concludingly, I ended up implementing a JMF-based component stream package:
JpegHelper:
ComponentBufferStream:
ComponentDataSource:
Along with some other helper classes, this did the trick.