How to create a simple server to transmit images and text #1418
Replies: 1 comment
|
Please be more descriptive than "it's not working", otherwise I can only guess what your problem is. auto offer = pc->createOffer();
// Print type info to confirm
std::cout << "Type: " << static_cast<int>(offer.type()) << "\n";
std::cout << "SDP:\n" << std::string(offer) << "\n";
pc->setLocalDescription(offer); // ✅ THIS IS THE RIGHT WAYThis is not the right way. Where did you get this code from? Does it even compile? The Then you have to fix the whole logic: the local description should be printed on As a side node, sending JPEG images over a data channel is a very poor way to send a real-time video. You should instead encode it as H264 and send it over a media track. |
Uh oh!
There was an error while loading. Please reload this page.
Hello,
libdatachannel 0.23.0
I am completely new to webRTC and other related stuff and trying to create a simple server in c++ and a client in python.
This is my first try and it's not working at all and I have no idea why. If someone point the right direction then it would be really helpful.
All reactions