[GH-ISSUE #1541] Other methods then http, https or h2c #1949

Closed
opened 2026-04-16 08:49:54 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @marcus-universe on GitHub (Sep 25, 2025).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/1541

I want to redirect to my media mtx server to stream srt streams to it on the go. To do this, I need to make the URL an srt:// type. Like: srt://192.168.50.100:8890?streamid=publish:mystream&latency=2000

192.168.50.100 is the local address of my local docker server and the port 8890 is used by Media Mtx to receive and send srt video streams.

How do I can select as a method srt:// or rtmp, rtmps ... instead of HTTP?

Image
Originally created by @marcus-universe on GitHub (Sep 25, 2025). Original GitHub issue: https://github.com/fosrl/pangolin/issues/1541 I want to redirect to my media mtx server to stream srt streams to it on the go. To do this, I need to make the URL an srt:// type. Like: srt://192.168.50.100:8890?streamid=publish:mystream&latency=2000 192.168.50.100 is the local address of my local docker server and the port 8890 is used by Media Mtx to receive and send srt video streams. How do I can select as a method srt:// or rtmp, rtmps ... instead of HTTP? <img width="1615" height="474" alt="Image" src="https://github.com/user-attachments/assets/5e644b40-b5c0-4cc8-99af-e7404752fe7a" />
Author
Owner

@oschwartz10612 commented on GitHub (Sep 25, 2025):

Its my understanding that http/https/h2c are the only supported
protocols beyond raw TCP and UDP. I think for these you could create a
TCP or UDP resource though!

<!-- gh-comment-id:3336059019 --> @oschwartz10612 commented on GitHub (Sep 25, 2025): Its my understanding that http/https/h2c are the only supported protocols beyond raw TCP and UDP. I think for these you could create a TCP or UDP resource though!
Author
Owner

@marcus-universe commented on GitHub (Sep 30, 2025):

Its my understanding that http/https/h2c are the only supported
protocols beyond raw TCP and UDP. I think for these, you could create a
TCP or UDP resource though!

Thanks a lot 👍
I didn't know that raw TCP/UDP connections are possible. I got it to work with a raw udp stream.

For everyone who also tries to do this, here is my approach for a srt stream:

  1. Follow these instructions: https://docs.digpangolin.com/manage/resources/tcp-udp-resources
  2. Create a udp raw resource in the Pangolin dashboard (I name mine srt)
Image
  1. Link it to your media mtx server
  2. Then your streaming url will be: srt://srt.yourdomain.com:8890?mode=caller&streamid=publish:mystream&latency=20000
  3. Then, on your second client use this url for receiving the srt signal: srt://srt.yourdomain.com:8890?streamid=read:mystream&mode=caller&timeout=20000

Change/replace "yourdomain.com" with your actual domain ;)

<!-- gh-comment-id:3353479047 --> @marcus-universe commented on GitHub (Sep 30, 2025): > Its my understanding that http/https/h2c are the only supported > protocols beyond raw TCP and UDP. I think for these, you could create a > TCP or UDP resource though! Thanks a lot 👍 I didn't know that raw TCP/UDP connections are possible. I got it to work with a raw udp stream. For everyone who also tries to do this, here is my approach for a srt stream: 1. Follow these instructions: [https://docs.digpangolin.com/manage/resources/tcp-udp-resources](https://docs.digpangolin.com/manage/resources/tcp-udp-resources) 2. Create a **udp raw resource** in the Pangolin dashboard (I name mine srt) <img width="1402" height="548" alt="Image" src="https://github.com/user-attachments/assets/4b56609e-7797-494c-ac39-c751de00078d" /> 3. Link it to your **media mtx server** 4. Then your **streaming url** will be: `srt://srt.yourdomain.com:8890?mode=caller&streamid=publish:mystream&latency=20000` 5. Then, on your second client use this url for receiving the srt signal: `srt://srt.yourdomain.com:8890?streamid=read:mystream&mode=caller&timeout=20000` Change/replace "yourdomain.com" with your actual domain ;)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/pangolin#1949