您好,登錄后才能下訂單哦!
編譯
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插件,然后進行相關的配置
janus 默認的配置中是沒有 WebSocket 的配置的,直接啟動 Janus 會因沒有 WebSocket 配置文件而報錯。幸運的是在配置目錄中 Janus 已經給我們提供了一個 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
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。