diff --git a/pc/peerconnection.cc b/pc/peerconnection.cc index e60474ca1d..9549c42830 100644 --- a/pc/peerconnection.cc +++ b/pc/peerconnection.cc @@ -3311,9 +3311,13 @@ bool PeerConnection::StartRtcEventLog(rtc::PlatformFile file, const size_t max_size = (max_size_bytes < 0) ? RtcEventLog::kUnlimitedOutput : rtc::saturated_cast(max_size_bytes); + int64_t output_period_ms = webrtc::RtcEventLog::kImmediateOutput; + if (field_trial::IsEnabled("WebRTC-RtcEventLogNewFormat")) { + output_period_ms = 5000; + } return StartRtcEventLog( absl::make_unique(file, max_size), - webrtc::RtcEventLog::kImmediateOutput); + output_period_ms); } bool PeerConnection::StartRtcEventLog(std::unique_ptr output,