janus-gateway 在macOS上的編譯部署


janus-gateway 在macOS上的編譯部署

# 下載代碼
git clone https://github.com/meetecho/janus-gateway.git
cd janus-gateway

# 安裝編譯工具及依賴包
brew install libmicrohttpd-dev libjansson-dev \
	libssl-dev libsrtp-dev libsofia-sip-ua-dev libglib2.0-dev \
	libopus-dev libogg-dev libcurl4-openssl-dev liblua5.3-dev \
	libconfig-dev pkg-config gengetopt libtool automake \
	graphviz

# brew默認安裝doxygen已經是1.8.17版本了,janux需要的是1.8.11以下的版本
# 可以通過下面這種方式來安裝較早的版本,這個是版本是1.8.9,測試可用。
# https://github.com/Homebrew/homebrew-core/blob/0fc5461d2fdb219433e512d9eb85437f9dc15df4/Formula/doxygen.rb
brew install doxygen.rb


# config
sh autogen.sh
./configure --prefix=/usr/local/janus PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig --enable-docs


# build
make -20

# install 
make install

# 生成配置文件
cd /usr/local/janus/etc/janus
for s in `ls `; do echo $s; mv $s `sed 's/.sample//g' <<< $s` ;  done

# 運行janus
cd /usr/local/janus
./bin/janus -C ./etc/janus/janus.jcfg

# 運行demo
cd /usr/local/janus/share/janus/demos
python -m SimpleHTTPServer 8080

# 文檔路徑
/usr/local/janus/share/doc/janus-gateway/janus-gateway-0.9.3/html/index.html

# demo地址
http://localhost:8080
···

看看效果
![videoroom](https://img2020.cnblogs.com/blog/147584/202004/147584-20200417010446456-1776752001.png)

注:
1.上面的步驟了少了turnserver的配置,以后再補上。
2.因為沒有配置turnserver,所以只能在內網使用。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM