Add support RTMPT (flv over HTTP)

This commit is contained in:
Alexey Khit
2022-10-30 17:15:43 +03:00
parent 24082b1616
commit 0dacdea1c3
5 changed files with 123 additions and 3 deletions

View File

@@ -8,6 +8,9 @@ import (
func Init() {
streams.HandleFunc("rtmp", handle)
// RTMPT (flv over HTTP)
streams.HandleFunc("http", handle)
streams.HandleFunc("https", handle)
}
func handle(url string) (streamer.Producer, error) {