云服务器搭建Janus Server & chrome直播树莓派摄像头采集的视频
开放端口
TCP: 443, 3478, 8080, 8089, 8188, 8989
UDP: 3478, 30000-60000
未修改前的源码
https://github.com/aiortc/aiortc.git
1、安装依赖
yum install libmicrohttpd-devel jansson-devel \
openssl-devel libsrtp-devel sofia-sip-devel glib2-devel \
opus-devel libogg-devel libcurl-devel pkgconfig gengetopt \
libconfig-devel libtool autoconf automake
yum install gnutls gnutls-deve
2、安装WebSocket
git clone https://github.com/warmcat/libwebsockets.git
cd libwebsockets
git branch -a 查看选择最新的稳定版本,目前的是remotes/origin/v3.2-stable
git checkout v3.2-stable 切换到最新稳定版本
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_C_FLAGS="-fpic" ..
make && sudo make install
3、安装 libsrtp
wget https://github.com/cisco/libsrtp/archive/v2.2.0.tar.gz
tar xfv v2.2.0.tar.gz
cd libsrtp-2.2.0
./configure --prefix=/usr --enable-openssl
make shared_library && sudo make install
4、安装libusrsctp(支持–enable-data-channels)
git clone https://github.com/Kurento/libusrsctp.git
cd lib