mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-24 01:42:22 +08:00
rtsp and rtp h264 lowlatency mode config
This commit is contained in:
@@ -398,6 +398,12 @@ private:
|
||||
//但是却对性能提升很大,这样做还是比较划算的
|
||||
|
||||
GET_CONFIG(int, mergeWriteMS, General::kMergeWriteMS);
|
||||
|
||||
GET_CONFIG(int, rtspLowLatency, Rtsp::KLowLatency);
|
||||
if(std::is_same<packet, RtpPacket>::value && rtspLowLatency){
|
||||
return true;
|
||||
}
|
||||
|
||||
return std::is_same<packet, RtpPacket>::value ? false : (mergeWriteMS <= 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user