mirror of
https://github.com/lkmio/lkm.git
synced 2025-09-27 03:26:01 +08:00
封装hls
This commit is contained in:
7
main.go
7
main.go
@@ -20,6 +20,10 @@ func CreateTransStream(protocol stream.Protocol, streams []utils.AVStream) strea
|
||||
return nil
|
||||
}
|
||||
|
||||
func requestStream(sourceId string) {
|
||||
|
||||
}
|
||||
|
||||
func init() {
|
||||
stream.TransStreamFactory = CreateTransStream
|
||||
}
|
||||
@@ -41,6 +45,9 @@ func main() {
|
||||
|
||||
println("启动rtmp服务成功:" + addr)
|
||||
|
||||
apiAddr := "0.0.0.0:8080"
|
||||
go startApiServer(apiAddr)
|
||||
|
||||
loadConfigError := http.ListenAndServe(":19999", nil)
|
||||
if loadConfigError != nil {
|
||||
panic(loadConfigError)
|
||||
|
Reference in New Issue
Block a user