diff --git a/src/output/output_rtmp.cpp b/src/output/output_rtmp.cpp index de4bad31..36952bf7 100644 --- a/src/output/output_rtmp.cpp +++ b/src/output/output_rtmp.cpp @@ -99,7 +99,7 @@ namespace Mist{ } sendCommand(amfReply, 20, 0); } - RTMPStream::chunk_snd_max = 10240000; //10000KiB + RTMPStream::chunk_snd_max = 65536; //64KiB myConn.SendNow(RTMPStream::SendCTL(1, RTMPStream::chunk_snd_max)); //send chunk size max (msg 1) HIGH_MSG("Waiting for server to acknowledge connect request..."); }else{ @@ -603,7 +603,7 @@ namespace Mist{ app_name = amfData.getContentP(2)->getContentP("tcUrl")->StrValue(); reqUrl = app_name;//LTS app_name = app_name.substr(app_name.find('/', 7) + 1); - RTMPStream::chunk_snd_max = 10240000; + RTMPStream::chunk_snd_max = 65536; //64KiB myConn.SendNow(RTMPStream::SendCTL(1, RTMPStream::chunk_snd_max)); //send chunk size max (msg 1) myConn.SendNow(RTMPStream::SendCTL(5, RTMPStream::snd_window_size)); //send window acknowledgement size (msg 5) myConn.SendNow(RTMPStream::SendCTL(6, RTMPStream::rec_window_size)); //send rec window acknowledgement size (msg 6) @@ -864,7 +864,7 @@ namespace Mist{ rtmpOffset = currentTime(); amfreply.getContentP(3)->addContent(AMF::Object("timecodeOffset", (double)rtmpOffset)); sendCommand(amfreply, playMessageType, playStreamId); - RTMPStream::chunk_snd_max = 10240000; //10000KiB + RTMPStream::chunk_snd_max = 65536; //64KiB myConn.SendNow(RTMPStream::SendCTL(1, RTMPStream::chunk_snd_max)); //send chunk size max (msg 1) //send dunno? myConn.SendNow(RTMPStream::SendUSR(32, 1)); //send UCM no clue?, stream 1 @@ -925,7 +925,7 @@ namespace Mist{ amfreply.getContentP(3)->addContent(AMF::Object("timecodeOffset", (double)rtmpOffset)); } sendCommand(amfreply, playMessageType, playStreamId); - RTMPStream::chunk_snd_max = 10240000; //10000KiB + RTMPStream::chunk_snd_max = 65536; //64KiB myConn.SendNow(RTMPStream::SendCTL(1, RTMPStream::chunk_snd_max)); //send chunk size max (msg 1) //send dunno? myConn.SendNow(RTMPStream::SendUSR(32, 1)); //send UCM no clue?, stream 1