#include <QApplication>
#include <QCamera>
#include <QCameraViewfinder>
#include <QMediaRecorder>
#include <QTcpServer>
#include <QTcpSocket>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QCamera *camera = new QCamera(nullptr);





    QCameraViewfinder *viewFinder = new QCameraViewfinder(nullptr);
    viewFinder->setParent(nullptr);
    camera->setViewfinder(viewFinder);

    QVideoEncoderSettings settings;
    settings.setCodec("video/x-h264");
    settings.setQuality(QMultimedia::EncodingQuality::HighQuality);



    QMediaRecorder *mediaRecorder = new QMediaRecorder(camera);
    mediaRecorder->setVideoSettings(settings);


    camera->start();
    viewFinder->show();

    QTcpServer server;
    server.listen(QHostAddress::Any,7890);
    while (server.isListening())
    {
        QTcpSocket *socket = server.nextPendingConnection();
        QTcpSocket *client = new QTcpSocket;

    }

    return a.exec();
}


send live video to client The words with all capital letters should appear at least 12 times.
user