Handle FFmpeg RTMP as HTTP source

This commit is contained in:
Alexey Khit
2022-09-16 17:00:24 +03:00
parent 71e1c840a7
commit fa23bb6899
+1 -1
View File
@@ -70,7 +70,7 @@ func Init() {
var input string
if i := strings.IndexByte(s, ':'); i > 0 {
switch s[:i] {
case "http", "https":
case "http", "https", "rtmp":
input = strings.Replace(tpl["http"], "{input}", s, 1)
case "rtsp", "rtsps":
// https://ffmpeg.org/ffmpeg-protocols.html#rtsp