From b9ea2c9d6252d8826979e760fe5324382b830ac3 Mon Sep 17 00:00:00 2001 From: Eli Mallon Date: Wed, 1 May 2019 12:03:39 -0700 Subject: [PATCH] use a 10mb chunk size this fixes connections with nginx-rtmp --- format/rtmp/rtmp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format/rtmp/rtmp.go b/format/rtmp/rtmp.go index 212ee06c..bfa27c1f 100644 --- a/format/rtmp/rtmp.go +++ b/format/rtmp/rtmp.go @@ -353,7 +353,7 @@ var CodecTypes = flv.CodecTypes func (self *Conn) writeBasicConf() (err error) { // > SetChunkSize - if err = self.writeSetChunkSize(1024 * 1024 * 128); err != nil { + if err = self.writeSetChunkSize(1024 * 1024 * 10); err != nil { return } // > WindowAckSize