Skip to content

Yangwebrtc2.0 Getting Started

yangrtc edited this page Oct 5, 2021 · 2 revisions

Yangwebrtc2.0 Getting Started

Remark: Yangwebrtc2.0 is developing and not stable.

下载源码,推荐ubuntu或者win10

git clone https://github.com/yangrtc/yangwebrtc.git

下载运行环境:在发行版中下载yangwebrtc2.0 runtime,里面包含所需动态库,动态库默认目录名称为lib

https://github.com/yangrtc/yangwebrtc/releases/tag/2.0-runtime

服务器部署

启动服务程序,推荐Srs4.0.146及以后版本,下载编译参考http://github.com/ossrs/srs#usage

​ objs/srs -c conf/https.rtc.conf

客户端编译

用QT(推荐5.14.2及以上版本)打开工程libyangrtc2、yangpushstream2、yangplayer2,如需改动目录将其.pro文件中HOME_BASE=..\更改为所需目录。
QT下载地址:https://download.qt.io/archive/qt/5.14/5.14.2/
静态库需要三个,ssl/crypto/srtp2,目录里已经有编译好的,如果有问题请再编译新的, 然后顺序编译即可。
Remark:windows下qt编译器为mingw64
Remark:ubuntu默认不支持opengl sudo apt-get install libgl1-mesa-dev
编译后的二进制文件在当前bin目录下

debug目录

linux:bin/app_debug bin/lib_debug
windows:bin/app_win_debug bin/lib_win_debug

release目录

linux:bin/app_release bin/lib_release
windows:bin/app_win_release bin/lib_win_release

编译后生成可执行文件放入下载的运行环境即可运行

视频会议YangMeeting2.0编译

https://github.com/yangrtc/yangwebrtc/wiki/YangMeeting-Getting-Started

Clone this wiki locally