WebRTC native c++ datachannel Hello World! example

7,405 views
Skip to first unread message

enrique iglesias

unread,
Jul 31, 2014, 7:52:54 AM7/31/14
to discuss...@googlegroups.com
Hello,

I am searching for a simple dataChannel WebRTC native Hello World! example. My goal is to send "Hello World!" from native c++ application to the browser, that's it.

I've already looked at the peerconnection client example, but there's no dataChannel example.
Peerconnection client has a lot of code in it, would all this code be necessary for a simple Hello World example?
I'd like to create an example which is as lean a possible.

Do you have any directions on where to search?

Kind regards

Frederik-Jan de Haas

unread,
Sep 7, 2014, 6:19:56 AM9/7/14
to discuss...@googlegroups.com
I'm interested in this too.

globalik slivov

unread,
Aug 5, 2016, 4:11:52 PM8/5/16
to discuss-webrtc
Hello there, here is a simple sample of server-side webrtc-native datachannel API written in pure c++
https://github.com/llamerada-jp/webrtc-cpp-sample

Frederik-Jan de Haas

unread,
Sep 18, 2016, 11:44:32 AM9/18/16
to discuss-webrtc
Hello,
Thanks a lot, do you know how I could compile this in ubuntu. I really seem to be too stupid to figure this stuff out by myself.
This isn't working:
clang++ -std=c++11 -I <path to webrtc>/src/ -L <path to work>/libs -L <path to webrtc>/src/out/Debug/ -lwebrtc_all -lwebrtc -framework CoreFoundation -framework Foundation -framework CoreAudio -framework AudioToolbox -framework CoreGraphics -o sample <path to work>/webrtc-cpp-sample/main.cpp

I'd be very grateful.

Miguel Won

unread,
May 14, 2020, 10:37:37 AM5/14/20
to discuss-webrtc
Hi. Did you figure it out? I'm having the same problem...
Reply all
Reply to author
Forward
0 new messages