Handle FFmpeg RTMP as HTTP source
This commit is contained in:
@@ -70,7 +70,7 @@ func Init() {
|
|||||||
var input string
|
var input string
|
||||||
if i := strings.IndexByte(s, ':'); i > 0 {
|
if i := strings.IndexByte(s, ':'); i > 0 {
|
||||||
switch s[:i] {
|
switch s[:i] {
|
||||||
case "http", "https":
|
case "http", "https", "rtmp":
|
||||||
input = strings.Replace(tpl["http"], "{input}", s, 1)
|
input = strings.Replace(tpl["http"], "{input}", s, 1)
|
||||||
case "rtsp", "rtsps":
|
case "rtsp", "rtsps":
|
||||||
// https://ffmpeg.org/ffmpeg-protocols.html#rtsp
|
// https://ffmpeg.org/ffmpeg-protocols.html#rtsp
|
||||||
|
|||||||
Reference in New Issue
Block a user