Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 936 Bytes

File metadata and controls

17 lines (13 loc) · 936 Bytes

Qt MJPEG Streamer widget License: MIT

Hasan Karaman, karaman.hasan@yahoo.com, 2022

MJPEGStreamer is an easy to use MJPEG surface for Qt GUI applications. Written using Qt5 but can be easily used with Qt4 with minor tweaks. It uses pure QTcpSocket and no external libraries are needed. Currently supports basic and digest authentication.

Example use (dynamic creation):

MJPEGStreamer * stream = new MJPEGStreamer(this);
stream->set_url("http://88.53.197.250/axis-cgi/mjpg/video.cgi?resolution=320x240");
stream->start();
stream->stop();

Or if you prefer to use Qt Designer, drag and drop a Widget to somewhere on the window then simply promote it to a MJPEGStreamer.

Disclaimer: address in the example is a public MJPEG streaming server and it is not guaranteed to remain the way it is. Use it at your own risk.