Repository navigation
How am I supposed to use Media-over-Quic? #5982
Replies: 1 comment 3 replies
|
You have fixed the first problem: MoQ uses the same port for two different transports, so Docker/NAT/firewall must expose both: ports:
- "8892:8892/tcp" # HTTPS / HTTP/2 page
- "8892:8892/udp" # WebTransport / HTTP/3The new Before displaying the controls, that page unconditionally does: navigator.mediaDevices.getUserMedia({ video: true, audio: true })If the browser/OS cannot provide either a camera or a microphone, that promise rejects with So the shortest working test is:
Also test with a hostname/certificate combination that the browser accepts, and verify that UDP/8892 is allowed end-to-end, not just declared in Compose. Once the page gets past device enumeration, a WebTransport failure will be a different error (typically while “connecting”) and can be diagnosed separately. The official requirements are listed here, including TCP+UDP 8892, HTTPS, WebTransport/WebCodecs, and Chrome-only publishing: If this machine intentionally has no camera or no microphone (for example, you only want screen capture), the current built-in page cannot get past that unconditional initial request. A temporary workaround is to provide/enable both devices. The code should ideally enumerate available devices and allow screen/video-only/audio-only operation without first requiring both; that part looks suitable for a small UI bug report/patch. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Question
Attempting to follow instructions here just results in a connection refused error.
I've installed Mediamtx with docker, and I'm attempting to connect via
https://ip:8892/mystream/publishin a modern desktop web browser. I'm simply met with a CONNECTION REFUSED on multiple browsers. What am I missing? There's no errors in the docker log, no port binding conflicts, etc.SRT and RTMP seem to work just fine.
Edit: It looks like I was missing a port in my docker config (I was referencing the docker instructions, so I guess they're deficient), but after adding both tcp and udp for
8892, I'm then met with a webpage that saysNotFoundError: The object can not be found here.on a black/gray background. Examining the HTML, there appears to be some video object of sorts but it's certainly not rendered at all. Right clicking in certain areas does show basic HTML video controls, but I see absolutely no way to publish a stream here.All reactions