jinleileiking / learning-notes

Notes for my learning.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

janus

jinleileiking opened this issue · comments

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

  • 没有plugin目录
    执行libtool

  • stream demo没反应
    只有音频,没有视频。。。。。

  • configure输出能看有哪些模块要编译