janus-gateway在mac下的安装使用

一、编译jauns-gateway

  1. 下载,git clone https://github.com/meetecho/janus-gateway;

  2. 安装相关的依赖

brew install jansson libnice openssl srtp libusrsctp libmicrohttpd libwebsockets cmake rabbitmq-c sofia-sip opus libogg curl glib pkg-config gengetopt autoconf automake libtool
  1. 编译
./configure --prefix=/usr/local/janus PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig
make install
make configs

二、运行demo

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。

你可能感兴趣的:(c++,webrtc)