From 8c2748af0f0e8ceda4664852a48278c6e06ec688 Mon Sep 17 00:00:00 2001 From: saxon Date: Sat, 28 Jul 2018 15:26:38 +0930 Subject: [PATCH] Using my rtmpSetBufferMS - tested and working --- rtmp/rtmp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index 31e5487b..9496fbb6 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -407,8 +407,8 @@ func startSession(rtmp *C.RTMP, u string, timeout uint32) (*C.RTMP, error) { rtmpEnableWrite(rtmp) //C.RTMP_EnableWrite(rtmp) - // rtmpSetBufferMS(rtmp, 3600*1000) - C.RTMP_SetBufferMS(rtmp, 3600*1000) + rtmpSetBufferMS(rtmp, 3600*1000) + //C.RTMP_SetBufferMS(rtmp, 3600*1000) // if rtmpConnect(rtmp, nil) == 0 { if C.RTMP_Connect(rtmp, nil) == 0 { //C.RTMP_Close(rtmp)