webrtc Native C++ Datachannel使用

运行:peerconnection_client+peerconnection_server+peerconnection_client
版本:m76
平台:linux
步骤:

1.创建DataChannal,并设置标签table
2.给Conductor类新增一个自定义函数DCSend()
3.在conductor.h中新增一个类FakeDataChannelObserver
4.在Conductor类中添加一些成员
5.重写void Conductor::OnDataChannel这个函数
6.在linux/main.cc中main函数中调用
7.运行测试
8.附录DataChannel知识补充
9.附录DataChannel在SDP中协商
10.DataChannel不通常见错误

编译方式:

gn gen out/linux --args='is_debug=true target_os="linux" target_cpu="x64" is_

猜你喜欢

转载自blog.csdn.net/weixin_43466192/article/details/127281000