diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index 0fec4067..31e5487b 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -405,8 +405,8 @@ func startSession(rtmp *C.RTMP, u string, timeout uint32) (*C.RTMP, error) { return nil, errors.New("rtmp startSession: Failed to setup URL!") } - // rtmpEnableWrite(rtmp) - C.RTMP_EnableWrite(rtmp) + rtmpEnableWrite(rtmp) + //C.RTMP_EnableWrite(rtmp) // rtmpSetBufferMS(rtmp, 3600*1000) C.RTMP_SetBufferMS(rtmp, 3600*1000) // if rtmpConnect(rtmp, nil) == 0 {