mirror of
https://github.com/Monibuca/plugin-rtmp.git
synced 2025-10-04 07:06:45 +08:00
@@ -113,8 +113,10 @@ func (pusher *RTMPPusher) Connect() (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
func (pusher *RTMPPusher) Disconnect() {
|
func (pusher *RTMPPusher) Disconnect() {
|
||||||
|
if pusher.NetConnection != nil {
|
||||||
pusher.NetConnection.Close()
|
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})
|
||||||
for {
|
for {
|
||||||
|
Reference in New Issue
Block a user