mirror of
https://github.com/Monibuca/plugin-rtmp.git
synced 2025-10-04 07:06:45 +08:00
👌 IMPROVE: 导出RTMP插件
This commit is contained in:
8
msg.go
8
msg.go
@@ -310,11 +310,11 @@ func decodeCommandAMF0(chunk *Chunk) {
|
||||
codef := zap.String("code", response.Infomation["code"].(string))
|
||||
switch response.Infomation["level"] {
|
||||
case Level_Status:
|
||||
plugin.Info("_result :", codef)
|
||||
RTMPPlugin.Info("_result :", codef)
|
||||
case Level_Warning:
|
||||
plugin.Warn("_result :", codef)
|
||||
RTMPPlugin.Warn("_result :", codef)
|
||||
case Level_Error:
|
||||
plugin.Error("_result :", codef)
|
||||
RTMPPlugin.Error("_result :", codef)
|
||||
}
|
||||
if strings.HasPrefix(response.Infomation["code"].(string), "NetStream.Publish") {
|
||||
chunk.MsgData = &ResponsePublishMessage{
|
||||
@@ -335,7 +335,7 @@ func decodeCommandAMF0(chunk *Chunk) {
|
||||
}
|
||||
case "FCPublish", "FCUnpublish":
|
||||
default:
|
||||
plugin.Info("decode command amf0 ", zap.String("cmd", cmd))
|
||||
RTMPPlugin.Info("decode command amf0 ", zap.String("cmd", cmd))
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user