mirror of
https://github.com/Monibuca/plugin-rtmp.git
synced 2025-09-26 19:51:38 +08:00
@@ -113,7 +113,9 @@ func (pusher *RTMPPusher) Connect() (err error) {
|
||||
return
|
||||
}
|
||||
func (pusher *RTMPPusher) Disconnect() {
|
||||
pusher.NetConnection.Close()
|
||||
if pusher.NetConnection != nil {
|
||||
pusher.NetConnection.Close()
|
||||
}
|
||||
}
|
||||
func (pusher *RTMPPusher) Push() error {
|
||||
pusher.SendMessage(RTMP_MSG_AMF0_COMMAND, &CommandMessage{"createStream", 2})
|
||||
|
Reference in New Issue
Block a user