編譯
git clone https://github.com/meetecho/janus-gateway.git
sh autogen.sh
./configure --prefix=/opt/janus --enable-websockets --enable-docs?–disable-plugin-lua
make
sudo make install
make configs//將所有的樣例配置模板安裝到/opt/janus/etc/janus文件夾下
janus.cfg? janus 的全局配置文件,但不包括其他插件的配置文件
例如 janus跟Android APP Demo通信,需要使用WeSocket插件,所以需要安裝libwebsocket插件,然后進行相關(guān)的配置
janus 默認(rèn)的配置中是沒有 WebSocket 的配置的,直接啟動 Janus 會因沒有 WebSocket 配置文件而報錯。幸運的是在配置目錄中 Janus 已經(jīng)給我們提供了一個 WebSocket 的示例配置文件 : janus.transport.websockets.cfg.sample,(如果我們要通過 WebSocket 連接 Janus,則需要有個 WebSocket 的配置文件)這里我們可以直接拷貝這個示例文件:
cp janus.transport.websockets.cfg.sample janus.transport.websockets.cfg
./configure --prefix=/opt/janus --enable-websockets
配置完成之后,打印信息
Compiler:????????????????? gcc
libsrtp version:?????????? 2.x
SSL/crypto library:??????? OpenSSL
DTLS set-timeout:????????? not available
Mutex implementation:????? GMutex (native futex on Linux)
DataChannels support:????? no
Recordings post-processor: no
TURN REST API client:????? yes
Doxygen documentation:???? no
Transports:
REST (HTTP/HTTPS):???? yes
WebSockets:??????????? yes
RabbitMQ:????????????? no
MQTT:????????????????? no
Unix Sockets:????????? yes
Nanomsg:?????????????? no
Plugins:
Echo Test:???????????? yes
Streaming:???????????? yes
Video Call:??????????? yes
SIP Gateway (Sofia):?? yes
SIP Gateway (libre):?? no
NoSIP (RTP Bridge):??? yes
Audio Bridge:????????? yes
Video Room:??????????? yes
Voice Mail:??????????? yes
Record&Play:?????????? yes
Text Room:???????????? yes
Lua Interpreter:?????? no
Duktape Interpreter:?? no
Event handlers:
Sample event handler:? yes
WebSocket ev. handler: yes
RabbitMQ event handler:no
MQTT event handler:??? no
Nanomsg event handler: no
External loggers:
JSON file logger:????? no
JavaScript modules:??????? no
If this configuration is ok for you, do a 'make' to start building Janus. A 'make install' will install Janus and its plugins to the specified prefix. Finally, a 'make configs' will install some sample configuration files too (something you'll only want to do the first time, though).
注意--enable-docs加載不成功,因此去掉該配置項
checking for doxygen... doxygen
checking for dot... no
configure: error: doxygen or dot not found. See README.md for installation instructions or remove --enable-docs
另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機、免備案服務(wù)器”等云主機租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。