Using my rtmpConnect - tested but failed, going to go into rtmp connect and use C funcs instead of mine

This commit is contained in:
saxon 2018-07-28 15:29:05 +09:30
parent 8c2748af0f
commit fc53e45505
1 changed files with 2 additions and 2 deletions

View File

@ -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!")