本站支持搜索的镜像仓库:Docker Hub、gcr.io、ghcr.io、quay.io、k8s.gcr.io、registry.gcr.io、elastic.co、mcr.microsoft.com

. It is also compatible with WHEP interface.
*** Notice *** Live demo are stopped till I migrate to a european web hosting.
./webrtc-streamer [-H http port] [-S[embeded stun address]] -[v[v]] [urls...] ./webrtc-streamer [-H http port] [-s[external stun address]] -[v[v]] [urls...] ./webrtc-streamer -V -v[v[v]] : verbosity -V : print version -C config.json : load urls from JSON config file -n name -u videourl -U audiourl : register a name for a video url and an audio url [url] : url to register in the source list -H [hostname:]port : HTTP server binding (default 0.0.0.0:8000) -w webroot : path to get files -c sslkeycert : path to private key and certificate for HTTPS -N nbthreads : number of threads for HTTP server -A passwd : password file for HTTP server access -D authDomain : authentication domain for HTTP server access (default:mydomain.com) -S[stun_address] : start embeded STUN server bind to address (default 0.0.0.0:3478) -s[stun_address] : use an external STUN server (default:stun.l.google.com:*** , -:means no STUN) -T[username:password@]turn_address : start embeded TURN server (default:disabled) -t[username:password@]turn_address : use an external TURN relay server (default:disabled) -R [Udp port range min:max] : Set the webrtc udp port range (default 0:65535) -W webrtc_trials_fields : Set the webrtc trials fields (default:WebRTC-FrameDropper/Disabled/) -a[audio layer] : spefify audio capture layer to use (default:0) -q[filter] : spefify publish filter (default:.*) -o : use null codec (keep frame encoded)
Arguments of '-H' are forwarded to option
listening_ports
of civetweb, allowing use of the civetweb syntax like -H8000,9000 or
-H8080r,8443s.
Using -o allows storing compressed frame data from the backend stream using
webrtc::VideoFrameBuffer::Type::kNative. This hacks the stucture
webrtc::VideoFrameBuffer storing data in a override of the i420 buffer. This
allows forwarding H264 frames from V4L2 device or RTSP stream to WebRTC stream.
It uses less CPU, but has less features (resize, codec, and bandwidth are
disabled).
Options for the WebRTC stream name:
-n argument then the corresponding -u argument will
be used to create the capturerwebrtc::DesktopCapturer::CreateScreenCapturerwebrtc::DesktopCapturer::CreateWindowCapturer./webrtc-streamer -C config.json
:3478 ./webrtc-streamer -s- -T0.0.0.0:3478 -tturn:turn@$(curl -s ifconfig.me):3478 ./webrtc-streamer -S0.0.0.0:3478 -s$(curl -s ifconfig.me):3478 -T0.0.0.0:3479 -tturn:turn@$(curl -s ifconfig.me):3479
The command curl -s ifconfig.me is getting the public IP, it could also given
as a static parameter.
In order to configure the NAT rules using the upnp feature of the router, it is possible to use upnpc like this:
upnpc -r 8000 tcp 3478 tcp 3478 udp
Adapting with the HTTP port, STUN port, TURN port.
Instead of using the internal HTTP server, it is easy to display a WebRTC stream in a HTML page served by another HTTP server. The URL of the WebRTC-streamer to use should be given creating the WebRtcStreamer instance:
var webRtcServer = new WebRtcStreamer(<video tag>, <webrtc-streamer url>);
A short sample HTML page using webrtc-streamer running locally on port 8000:
<html> <head> <script src="libs/adapter.min.js" ></script> <script src="webrtcstreamer.js" ></script> <script> var webRtcServer = null; window.onload = function() { webRtcServer = new WebRtcStreamer("video",location.protocol+"//"+location.hostname+":8000"); webRtcServer.connect("rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov"); } window.onbeforeunload = function() { webRtcServer.disconnect(); } </script> </head> <body> <video id="video" /> </body> </html>
WebRTC-streamer provides its own Web Components as an alternative way to display a WebRTC stream in an HTML page. For example:
<html> <head> <script type="module" src="webrtc-streamer-element.js"></script> </head> <body> <webrtc-streamer url="rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov"></webrtc-streamer> </body> </html>
Live Demo
Using the webcomponent with a stream selector:
; </script> </body> </html>
Live Demo

A short sample to publish WebRTC streams to Janus Video Room could be:
<html> <head> <script src="janusvideoroom.js" ></script> <script> var janus = new JanusVideoRoom("[***]", null); janus.join(1234, "rtsp://pi2.local:8554/unicast","pi2"); janus.join(1234, "rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov","media"); </script> </head> </html>
; var JanusVideoRoom = require("./html/janusvideoroom.js"); var janus = new JanusVideoRoom( "[***]", "[***]", ); janus.join(1234, "videocap://0", "video");
A simple way to publish WebRTC stream to a Jitsi Video Room is to use the XMPPVideoRoom interface
var xmpp = new XMPPVideoRoom(<xmpp server url>, <webrtc-streamer url>)
A short sample to publish WebRTC streams to a Jitsi Video Room could be:
<html> <head> <script src="libs/strophe.min.js" ></script> <script src="libs/strophe.muc.min.js" ></script> <script src="libs/strophe.disco.min.js" ></script> <script src="libs/strophe.jingle.sdp.js"></script> <script src="libs/jquery-3.5.1.min.js"></script> <script src="xmppvideoroom.js" ></script> <script> var xmpp = new XMPPVideoRoom("meet.jit.si", null); xmpp.join("testroom", "rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov","Bunny"); </script> </head> </html>
Live Demo
This package depends on the following packages:
The following steps are required to build the project, and will install the dependencies above:
Install the Chromium depot tools
pushd .. git clone [***] export PATH=$PATH:`realpath depot_tools` popd
Download WebRTC
mkdir ../webrtc pushd ../webrtc fetch webrtc popd
Build WebRTC Streamer
cmake . && make
It is possible to specify cmake parameters WEBRTCROOT &
WEBRTCDESKTOPCAPTURE:
$WEBRTCROOT/src should contains source (default is $(pwd)/../webrtc)WEBRTCDESKTOPCAPTURE enabling desktop capture if available (default is ON)There is pipelines on CircleCI, CirrusCI, or GitHub CI, for the following architectures:
![Star History Chart]([***]
免费版仅支持 Docker Hub 加速,不承诺可用性和速度;专业版支持更多镜像源,保证可用性和稳定速度,提供优先客服响应。
免费版仅支持 docker.io;专业版支持 docker.io、gcr.io、ghcr.io、registry.k8s.io、nvcr.io、quay.io、mcr.microsoft.com、docker.elastic.co 等。
当返回 402 Payment Required 错误时,表示流量已耗尽,需要充值流量包以恢复服务。
通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。
先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。
使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。
探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录方式配置轩辕镜像加速服务,包含7个详细步骤
在 Linux 系统上配置轩辕镜像源,支持主流发行版
在 Docker Desktop 中配置轩辕镜像加速,适用于桌面系统
在 Docker Compose 中使用轩辕镜像加速,支持容器编排
在 k8s 中配置 containerd 使用轩辕镜像加速
在宝塔面板中配置轩辕镜像加速,提升服务器管理效率
在 Synology 群晖NAS系统中配置轩辕镜像加速
在飞牛fnOS系统中配置轩辕镜像加速
在极空间NAS中配置轩辕镜像加速
在爱快ikuai系统中配置轩辕镜像加速
在绿联NAS系统中配置轩辕镜像加速
在威联通NAS系统中配置轩辕镜像加速
在 Podman 中配置轩辕镜像加速,支持多系统
配置轩辕镜像加速9大主流镜像仓库,包含详细配置步骤
无需登录即可使用轩辕镜像加速服务,更加便捷高效
需要其他帮助?请查看我们的 常见问题 或 官方QQ群: 13763429