mirror of https://bitbucket.org/ausocean/av.git
Using my rtmpConnect - tested but failed, going to go into rtmp connect and use C funcs instead of mine
This commit is contained in:
parent
8c2748af0f
commit
fc53e45505
|
@ -409,8 +409,8 @@ func startSession(rtmp *C.RTMP, u string, timeout uint32) (*C.RTMP, error) {
|
|||
//C.RTMP_EnableWrite(rtmp)
|
||||
rtmpSetBufferMS(rtmp, 3600*1000)
|
||||
//C.RTMP_SetBufferMS(rtmp, 3600*1000)
|
||||
// if rtmpConnect(rtmp, nil) == 0 {
|
||||
if C.RTMP_Connect(rtmp, nil) == 0 {
|
||||
if rtmpConnect(rtmp, nil) == 0 {
|
||||
//if C.RTMP_Connect(rtmp, nil) == 0 {
|
||||
//C.RTMP_Close(rtmp)
|
||||
//C.RTMP_Free(rtmp)
|
||||
return nil, errors.New("rtmp startSession: Failed to connect!")
|
||||
|
|
Loading…
Reference in New Issue