accept the video stream then display it
Printable View
accept the video stream then display it
If you are designing the server as well as the client, then I would recommend TCP, otherwise you need to know which the server supports.
thank you for the suggestion squide. may i ask another suggestion ?
here is my program.
at the client side, the program captures video the transmit it via wlan to the server side.
at the server side, the program plays the video.
i have the source code for the capturing stuff and play the video stuff. but i'm stuck with the client - server video transfer stuff.
thanks in advance
So what is the question? You do not know how to use QTCPSocket?
use QUdpSocket.. .i have a made a simple client server class.. the problem how to put my stream into the socket.. here is my client - server class
Code:
#include "jcxudp.h" { connect(socket,SIGNAL(readyRead()),this,SLOT(SiapBaca())); } void jcxUDP::NulisHallo() { QByteArray Data; Data.append("halo dari jincheng"); } void jcxUDP::SiapBaca() { QByteArray Buffer; Buffer.resize(socket->pendingDatagramSize()); QHostAddress sender; quint16 senderPort; socket->readDatagram(Buffer.data(),Buffer.size(),&sender,&senderPort); qDebug() << "Pesan Dari :" << sender.toString(); qDebug() << "Port Pesan :" << senderPort; qDebug() << "Pesan :" << Buffer; }
Sorry to interrupt, but this is getting a little off topic
@bajoelkid12: I suggest you create new thread about your socket problems, "Webcam Video Capture" no longer describes this thread correctly. Imagine someone searching the forum in the future for video capturing problems, ending up on some sort of server code :)
ahh.. thanks a lot Stampede :) i'll create a new thread then :)
You guys can use Screen Recording Suite to help you record video from webcam.