Rename HTTP-FLV

This commit is contained in:
Alexey Khit
2022-10-31 20:05:28 +03:00
parent 04f1aa2900
commit 2629dccb81
4 changed files with 3 additions and 4 deletions

View File

@@ -8,7 +8,6 @@ import (
func Init() {
streams.HandleFunc("rtmp", handle)
// RTMPT (flv over HTTP)
streams.HandleFunc("http", handle)
streams.HandleFunc("https", handle)
}

View File

@@ -1,4 +1,4 @@
package rtmpt
package httpflv
import (
"bufio"

View File

@@ -5,7 +5,7 @@ import (
"encoding/hex"
"fmt"
"github.com/AlexxIT/go2rtc/pkg/h264"
"github.com/AlexxIT/go2rtc/pkg/rtmpt"
"github.com/AlexxIT/go2rtc/pkg/httpflv"
"github.com/AlexxIT/go2rtc/pkg/streamer"
"github.com/deepch/vdk/av"
"github.com/deepch/vdk/codec/aacparser"
@@ -43,7 +43,7 @@ func NewClient(uri string) *Client {
func (c *Client) Dial() (err error) {
if strings.HasPrefix(c.URI, "http") {
c.conn, err = rtmpt.Dial(c.URI)
c.conn, err = httpflv.Dial(c.URI)
} else {
c.conn, err = rtmp.Dial(c.URI)
}