在 SWT/RCP 中嵌入视频显示
如何在 SWT/RCP 应用程序中显示视频(或 mjpeg),同时视频必须尽可能减少其他 UI 交互的影响?
目前,我在 UI 线程中的 Canvas 中绘制 MJPEG,当我进行其他 UI 交互时,它会滞后。 是否可以独立于其他 UI 交互来绘制视频或运动图像?
谢谢!!
How to display a video (or mjpeg) in a SWT/RCP aplication while the video must has as less as possible impact from the other UI interation?
At moment I paint MJPEGs in a Canvas wihtin UI Thread, and it will lag when I did other UI interactions.
Is there possible to draw video or motion images independent from other UI interactions?
thanks!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您只想显示网络摄像头的 MJPG,您可以使用 浏览器小部件。我想也可以在浏览器中显示其他格式,例如 mp4。
在这里您可以找到一个 SWT 示例 -> 从内存中渲染 HTML
一些用于显示 MJPG 网络摄像头的有用 HTML 代码:
If you only want to display MJPG of a Webcam you chould use the Browser-Widget. I guess it is also possible to display other formats like mp4 in a browser.
Here you can find a SWT Example to -> render HTML from memory
Some useful HTML-Code to display a MJPG Webcam: