Workaround bug in OBS v25
This commit is contained in:
parent
16bb689b7e
commit
b45fd85b95
1 changed files with 8 additions and 1 deletions
|
@ -396,7 +396,14 @@ namespace Mist {
|
|||
}
|
||||
app_name = amfData.getContentP(2)->getContentP("tcUrl")->StrValue();
|
||||
app_name = app_name.substr(app_name.find('/', 7) + 1);
|
||||
//send a _result reply
|
||||
|
||||
//If this user agent matches, we can safely guess it's librtmp, and this is not dangerous
|
||||
if (UA == "FMLE/3.0 (compatible; FMSc/1.0)"){
|
||||
//set max chunk size early, to work around OBS v25 bug
|
||||
RTMPStream::chunk_snd_max = 65536; // 64KiB
|
||||
myConn.SendNow(RTMPStream::SendCTL(1, RTMPStream::chunk_snd_max)); // send chunk size max (msg 1)
|
||||
}
|
||||
// send a _result reply
|
||||
AMF::Object amfReply("container", AMF::AMF0_DDV_CONTAINER);
|
||||
amfReply.addContent(AMF::Object("", "_result")); //result success
|
||||
amfReply.addContent(amfData.getContent(1)); //same transaction ID
|
||||
|
|
Loading…
Add table
Reference in a new issue