将amf迁入engine中方便服用

This commit is contained in:
dexter
2023-01-16 09:27:14 +08:00
parent 7f00f32cb7
commit a0b55d5e1b
6 changed files with 84 additions and 427 deletions

View File

@@ -90,13 +90,13 @@ func (config *RTMPConfig) ServeTCP(conn *net.TCPConn) {
m := new(ResponseConnectMessage)
m.CommandName = Response_Result
m.TransactionId = 1
m.Properties = AMFObject{
m.Properties = map[string]any{
"fmsVer": "monibuca/" + engine.Engine.Version,
"capabilities": 31,
"mode": 1,
"Author": "dexter",
}
m.Infomation = AMFObject{
m.Infomation = map[string]any{
"level": Level_Status,
"code": NetConnection_Connect_Success,
"objectEncoding": nc.objectEncoding,