mirror of
https://github.com/Monibuca/plugin-rtmp.git
synced 2025-10-05 15:37:11 +08:00
推拉异常时关闭远程连接,发送首个音视频包采用绝对时间戳
This commit is contained in:
@@ -7,7 +7,6 @@ import (
|
||||
"io"
|
||||
"net"
|
||||
|
||||
. "m7s.live/engine/v4"
|
||||
"m7s.live/engine/v4/util"
|
||||
)
|
||||
|
||||
@@ -43,37 +42,6 @@ const (
|
||||
SEND_FULL_VDIEO_MESSAGE = "Send Full Video Message"
|
||||
)
|
||||
|
||||
func newConnectResponseMessageData(objectEncoding float64) (amfobj map[string]any) {
|
||||
amfobj = make(map[string]any)
|
||||
amfobj["fmsVer"] = "monibuca/" + Engine.Version
|
||||
amfobj["capabilities"] = 31
|
||||
amfobj["mode"] = 1
|
||||
amfobj["Author"] = "dexter"
|
||||
amfobj["level"] = Level_Status
|
||||
amfobj["code"] = NetConnection_Connect_Success
|
||||
amfobj["objectEncoding"] = uint64(objectEncoding)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
func newPublishResponseMessageData(streamid uint32, code, level string) (amfobj map[string]any) {
|
||||
amfobj = make(map[string]any)
|
||||
amfobj["code"] = code
|
||||
amfobj["level"] = level
|
||||
amfobj["streamid"] = streamid
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
func newPlayResponseMessageData(streamid uint32, code, level string) (amfobj map[string]any) {
|
||||
amfobj = make(map[string]any)
|
||||
amfobj["code"] = code
|
||||
amfobj["level"] = level
|
||||
amfobj["streamid"] = streamid
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
type NetConnection struct {
|
||||
*bufio.Reader `json:"-"`
|
||||
net.Conn `json:"-"`
|
||||
|
Reference in New Issue
Block a user