Update client.go

rtmp 没有连上的情况
This commit is contained in:
banshan
2023-09-21 17:59:07 +08:00
committed by GitHub
parent 91af4e990e
commit c044d19602

View File

@@ -113,8 +113,10 @@ func (pusher *RTMPPusher) Connect() (err error) {
return
}
func (pusher *RTMPPusher) Disconnect() {
if pusher.NetConnection != nil {
pusher.NetConnection.Close()
}
}
func (pusher *RTMPPusher) Push() error {
pusher.SendMessage(RTMP_MSG_AMF0_COMMAND, &CommandMessage{"createStream", 2})
for {