mirror of https://bitbucket.org/ausocean/av.git
Now rtmpConnect1 is using after having gone in and started using C funcs, let's start to try and use mine instead
This commit is contained in:
parent
3215983163
commit
4062508078
10
rtmp/rtmp.go
10
rtmp/rtmp.go
|
@ -716,17 +716,17 @@ func rtmpConnect1(r *C.RTMP, cp *C.RTMPPacket) int {
|
||||||
if debugMode {
|
if debugMode {
|
||||||
log.Println("... connected, handshaking...")
|
log.Println("... connected, handshaking...")
|
||||||
}
|
}
|
||||||
// TODO: port this
|
|
||||||
if handShake(r, 1) == 0 {
|
if C.HandShake(r, 1) == 0 {
|
||||||
|
//if handShake(r, 1) == 0 {
|
||||||
log.Println("rtmpConnect1: handshake failed!")
|
log.Println("rtmpConnect1: handshake failed!")
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
if debugMode {
|
if debugMode {
|
||||||
log.Println("... handshaked...")
|
log.Println("... handshaked...")
|
||||||
}
|
}
|
||||||
|
if C.SendConnectPacket(r, cp) == 0 {
|
||||||
// TODO: port this
|
//if sendConnectPacket(r, cp) == 0 {
|
||||||
if sendConnectPacket(r, cp) == 0 {
|
|
||||||
log.Println("RTMP connect failed!")
|
log.Println("RTMP connect failed!")
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue