voc / srtrelay

SRT relay server for distributing media streams to multiple clients.
MIT License
144 stars 36 forks source link

[ enhancement ] Supports SRT Access Control streamid with recomended format #38

Open calanor opened 5 months ago

calanor commented 5 months ago

srtdelay way use for streamid the syntaxt: (play|publish)/(stream-key)[/password]

It would be recommended if srtdelay could also support the access control methods as defined in the SRT https://github.com/Haivision/srt/blob/master/docs/features/access-control.md

#!::m=(request|publish),r=(stream-key),u=(user),s=(password)

with your example:

# start publisher
ffmpeg -i test.mp4 -c copy -f mpegts 'srt://localhost:1337?streamid=#!::m=publish,r=test'
# start subscriber
ffplay -fflags nobuffer 'srt://localhost:1337?streamid=#!::m=request,r=test'

Some new hardware equipment comes prepared for use this type of syntax.

iSchluff commented 3 months ago

This is something that we were thinking about in the beginning, but we couldn't find any device that supported it.

It would be interesting to know which encoder you have?