Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 842
rnd_nr_gen Avatar asked Jun 09 '26 20:06

rnd_nr_gen


1 Answers

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>
like image 162
Chriss Avatar answered Jun 11 '26 10:06

Chriss