录制功能调试

This commit is contained in:
langhuihui
2020-01-29 17:11:09 +08:00
parent 4e0934451b
commit 5eb7f03dec
15 changed files with 56 additions and 31 deletions

View File

@@ -87,6 +87,9 @@ func processRtmp(conn net.Conn) {
}
switch msg.MessageTypeID {
case RTMP_MSG_AMF0_COMMAND:
if msg.MsgData == nil {
break
}
cmd := msg.MsgData.(Commander).GetCommand()
switch cmd.CommandName {
case "createStream":