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