Skip to content

metaRTC streams to janus via the whip protocol

yangrtc edited this page May 16, 2023 · 3 revisions

metaRTC6.0 adds a streaming demo to Janus

janus

GitHub - meetecho/janus-gateway: Janus WebRTC Server

janus docker

git clone https://github.com/winlinvip/janus-docker.git
cd janus-docker

janus.jcfg
line 278 nat_1_1_mapping="192.168.3.85" change IP

docker pull ossrs/janus:v1.0.11

docker run --rm -it -p 8081:8080 -p 8188:8188 -p 8443:8443 -p 20000-20010:20000-20010/udp \
-v $(pwd)/janus.jcfg:/usr/local/etc/janus/janus.jcfg \
-v $(pwd)/janus.plugin.videoroom.jcfg:/usr/local/etc/janus/janus.plugin.videoroom.jcfg \
-v $(pwd)/janus.transport.http.jcfg:/usr/local/etc/janus/janus.transport.http.jcfg \
-v $(pwd)/janus.transport.websockets.jcfg:/usr/local/etc/janus/janus.transport.websockets.jcfg \
-v $(pwd)/videoroomtest.js:/usr/local/share/janus/demos/videoroomtest.js \
ossrs/janus:v1.0.11

http://localhost:8081/videoroomtest.html?room=2345
room 2345 is h264 room

simple whip server

git clone https://github.com/meetecho/simple-whip-server.git
cd simple-whip-server
npm run build
npm run start
or
npm run start-debug

compile

demo/metaPushStream6 supports Windows/Linux
Open the metapushstream6 project with QT and compile it

metaPushStream6

图片 The New Video Room User window pops up

图片

After modifying the simple whip server IP, click the start button to push the stream

图片

If you encounter problems, review the log file yang_log.log