开发者

embed Video Display in SWT/RCP

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!!


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:

<html><head></head>
<body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">
<img src="http://the.hostname/video?camera=1">
</body>
</html>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜