封装http-flv

This commit is contained in:
yangjiechina
2024-03-10 14:31:14 +08:00
parent 096493aa44
commit 596502d215
13 changed files with 484 additions and 210 deletions

View File

@@ -1,6 +1,7 @@
package main
import (
"github.com/yangjiechina/live-server/flv"
"github.com/yangjiechina/live-server/hls"
"net"
"net/http"
@@ -27,6 +28,8 @@ func CreateTransStream(source stream.ISource, protocol stream.Protocol, streams
}
return transStream
} else if stream.ProtocolFlv == protocol {
return flv.NewHttpTransStream()
}
return nil