下载,git clone https://github.com/meetecho/janus-gateway;
安装相关的依赖
brew install jansson libnice openssl srtp libusrsctp libmicrohttpd libwebsockets cmake rabbitmq-c sofia-sip opus libogg curl glib pkg-config gengetopt autoconf automake libtool
./configure --prefix=/usr/local/janus PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig
make install
make configs
demo相关的代码位于html目录下,需要http服务器才行。这里以http-server为例;
1. cd html
2. gpm -g install http-server
3. http-server
显示信息如下:
➜ html git:(master) ✗ http-server
Starting up http-server, serving ./
Available on:
http://127.0.0.1:8080
http://192.168.0.104:8080
Hit CTRL-C to stop the server
看到如上信息表明http服务器启动成功,之后再运行janux。在游览器中输入 http://127.0.0.1:8080,既可以看到相关demo。