mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-22 00:42:22 +08:00
srt connection transfer support
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user