mirror of
https://github.com/lkmio/lkm.git
synced 2025-11-02 03:23:02 +08:00
封装http-flv
This commit is contained in:
3
main.go
3
main.go
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user