digiKam
|
Classes | |
class | Private |
Public Slots | |
void | slotWriteFrame (const QByteArray &frame) |
Public Member Functions | |
QStringList | blackList () const |
int | maxClients () const |
MjpegServer (const QString &address=QString(), int port=8080, QObject *const parent=nullptr) | |
int | rate () const |
void | setBlackList (const QStringList &lst) |
bool | setMaxClients (int) |
bool | setRate (int) |
void | start () |
void | stop () |
~MjpegServer () | |
|
explicit |
Create an instance of MJPEG server listening on 'address' and 'port'. Default address is 'any' (an empty string), as server listen on all network interfaces. You can pass a literal address as "localhost" or an IPV4 based one as "192.168.1.1".
References DigikamGenericMjpegStreamPlugin::MjpegServer::Private::open(), and DigikamGenericMjpegStreamPlugin::MjpegServer::Private::setMaxClients().
DigikamGenericMjpegStreamPlugin::MjpegServer::~MjpegServer | ( | ) |
QStringList DigikamGenericMjpegStreamPlugin::MjpegServer::blackList | ( | ) | const |
int DigikamGenericMjpegStreamPlugin::MjpegServer::maxClients | ( | ) | const |
int DigikamGenericMjpegStreamPlugin::MjpegServer::rate | ( | ) | const |
void DigikamGenericMjpegStreamPlugin::MjpegServer::setBlackList | ( | const QStringList & | lst | ) |
Handle the list of clients IP address to ban from the stream server.
References DigikamGenericMjpegStreamPlugin::MjpegServer::Private::blackList.
bool DigikamGenericMjpegStreamPlugin::MjpegServer::setMaxClients | ( | int | max | ) |
Limit the number of clients connected to the server [1 - 30]. Default = 10 clients.
References DigikamGenericMjpegStreamPlugin::MjpegServer::Private::setMaxClients().
bool DigikamGenericMjpegStreamPlugin::MjpegServer::setRate | ( | int | ra | ) |
Handle rate of frame per seconds dispatched to the network [1 - 30]. A low value reduce network bandwidth use. Default = 15 img/s.
References DigikamGenericMjpegStreamPlugin::MjpegServer::Private::delay, and DigikamGenericMjpegStreamPlugin::MjpegServer::Private::rate.
|
slot |
Slot to push an update of JPEG frame to the remote client connected on server. Use a direct signal/slot connection to optimize time latency.
References DigikamGenericMjpegStreamPlugin::MjpegServer::Private::lastFrame, and DigikamGenericMjpegStreamPlugin::MjpegServer::Private::mutexFrame.
void DigikamGenericMjpegStreamPlugin::MjpegServer::start | ( | ) |
Start and stop the server to listen on the network. for a new client connection.
References DigikamGenericMjpegStreamPlugin::MjpegServer::Private::start().
void DigikamGenericMjpegStreamPlugin::MjpegServer::stop | ( | ) |