jinleileiking / learning-notes

Notes for my learning.
GNU General Public License v3.0
1 stars 2 forks source link

janus #12

Open jinleileiking opened 1 year ago

jinleileiking commented 1 year ago

whep demo

https://www.meetecho.com/blog/whip-whep/

janus

  1. 下载依赖

sudo apt install libsrtp2-dev

whep依赖ws,而janus编译的时候如果没有libwebsocket会自动不启动,所以要按照readme编译ws

  1. 编译
./configure --prefix=`pwd`/out  --disable-data-channels --disable-rabbitmq --disable-mqtt
make
make install
make configs

libtool --finish ./out/lib/janus/plugins
libtool --finish ./out/lib/janus/transports
libtool --finish ./out/lib/janus/events
  1. 启动

cp out/etc/janus/janus.jcfg . 改out/etc/janus/janus.plugin.streaming.jcfg配置文件的alaw的目录为绝对路径 改janus.jcfg的general folders目录为绝对路径 cd out && ./bin/janus -C ./janus.jcfg -F ./etc/janus/

  1. 检查stream demo是否正确工作

cd html python3 -m http.server 9002 打开浏览器 http://192.168.3.2:9002/streamingtest.html 点击start,选alaw

image

点 watch or listen

whep server

https://github.com/meetecho/simple-whip-server 这个直接跑就行

image

填,2,2 然后点,watch,就能听见马拉多纳了

faq