Docker for webrtc-streamerを動かす
docker pull して
https://github.com/mpromonet/webrtc-streamer を見ながら
docker run -p 8000:8000 -it mpromonet/webrtc-streamer
docker run --device=/dev/video0 -p 8000:8000 -it mpromonet/webrtc-streamer
sudo docker run --device=/dev/video1 -p 8123:8000 -it mpromonet/webrtc-streamer -v -S
ヘルプ
./webrtc-streamer [-H http port] [-S embeded stun address] [-t [username:password@]turn_address] -[v[v]] [url1]...[urln]
./webrtc-streamer [-H http port] [-s externel stun address] [-t [username:password@]turn_address] -[v[v]] [url1]...[urln]
-v[v[v]] : verbosity
-H hostname:port : HTTP server binding (default 0.0.0.0:8000)
-w webroot : path to get files
-S[stun_address] : start embeded STUN server bind to address (default 127.0.0.1:3478)
-s[stun_address] : use an external STUN server (default stun.l.google.com:19302)
-t[username:password@]turn_address : use an external TURN relay server (default disabled)
[url] : url to register in the source list
ポート開放
sudo firewall-cmd --add-port=3478/tcp --zone=public --permanent
sudo firewall-cmd --reload