mirror of
https://github.com/Monibuca/plugin-rtmp.git
synced 2025-10-04 23:23:34 +08:00
升级playblock
This commit is contained in:
@@ -116,7 +116,7 @@ func (pusher *RTMPPusher) Push() {
|
||||
})
|
||||
} else if response, ok := msg.MsgData.(*ResponsePublishMessage); ok {
|
||||
if response.Infomation["code"] == NetStream_Publish_Start {
|
||||
go pusher.PlayBlock(pusher)
|
||||
go pusher.PlayBlock()
|
||||
} else {
|
||||
return
|
||||
}
|
||||
|
@@ -154,7 +154,7 @@ func (config *RTMPConfig) ServeTCP(conn *net.TCPConn) {
|
||||
sender.Begin()
|
||||
sender.Response(cmd.TransactionId, NetStream_Play_Reset, Level_Status)
|
||||
sender.Response(cmd.TransactionId, NetStream_Play_Start, Level_Status)
|
||||
go sender.PlayBlock(sender)
|
||||
go sender.PlayBlock()
|
||||
}
|
||||
}
|
||||
case RTMP_MSG_AUDIO:
|
||||
|
Reference in New Issue
Block a user