srt connection transfer support

This commit is contained in:
xiongguangjie
2022-09-20 00:39:42 +08:00
parent b77c19c969
commit ec1942fa81
5 changed files with 42 additions and 3 deletions

View File

@@ -340,6 +340,15 @@ int SrtTransportImp::getLatencyMul() {
return latencyMul;
}
float SrtTransportImp::getTimeOutSec() {
GET_CONFIG(float, timeOutSec, kTimeOutSec);
if (timeOutSec <= 0) {
WarnL << "config srt " << kTimeOutSec << " not vaild";
return 5.0;
}
return timeOutSec;
}
int SrtTransportImp::getPktBufSize() {
// kPktBufSize
GET_CONFIG(int, pktBufSize, kPktBufSize);