Exposing rtcp report interval setting in objc api
Bug: webrtc:8789 Change-Id: I75d8cac70de00b067cbbcbe7faa3d3ccb0318453 Reviewed-on: https://webrtc-review.googlesource.com/c/110846 Reviewed-by: Anders Carlsson <andersc@webrtc.org> Reviewed-by: Kári Helgason <kthelgason@webrtc.org> Commit-Queue: Jiawei Ou <ouj@fb.com> Cr-Commit-Position: refs/heads/master@{#25643}
This commit is contained in:
@ -201,6 +201,16 @@ RTC_OBJC_EXPORT
|
||||
*/
|
||||
@property(nonatomic, nullable) RTCCryptoOptions *cryptoOptions;
|
||||
|
||||
/**
|
||||
* Time interval between audio RTCP reports.
|
||||
*/
|
||||
@property(nonatomic, assign) int rtcpAudioReportIntervalMs;
|
||||
|
||||
/**
|
||||
* Time interval between video RTCP reports.
|
||||
*/
|
||||
@property(nonatomic, assign) int rtcpVideoReportIntervalMs;
|
||||
|
||||
- (instancetype)init;
|
||||
|
||||
@end
|
||||
|
||||
@ -53,6 +53,8 @@
|
||||
@synthesize useMediaTransport = _useMediaTransport;
|
||||
@synthesize useMediaTransportForDataChannels = _useMediaTransportForDataChannels;
|
||||
@synthesize cryptoOptions = _cryptoOptions;
|
||||
@synthesize rtcpAudioReportIntervalMs = _rtcpAudioReportIntervalMs;
|
||||
@synthesize rtcpVideoReportIntervalMs = _rtcpVideoReportIntervalMs;
|
||||
|
||||
- (instancetype)init {
|
||||
// Copy defaults.
|
||||
@ -130,6 +132,8 @@
|
||||
sframeRequireFrameEncryption:config.crypto_options->sframe
|
||||
.require_frame_encryption];
|
||||
}
|
||||
_rtcpAudioReportIntervalMs = config.audio_rtcp_report_interval_ms();
|
||||
_rtcpVideoReportIntervalMs = config.video_rtcp_report_interval_ms();
|
||||
}
|
||||
return self;
|
||||
}
|
||||
@ -261,7 +265,8 @@
|
||||
_cryptoOptions.sframeRequireFrameEncryption ? true : false;
|
||||
nativeConfig->crypto_options = absl::optional<webrtc::CryptoOptions>(nativeCryptoOptions);
|
||||
}
|
||||
|
||||
nativeConfig->set_audio_rtcp_report_interval_ms(_rtcpAudioReportIntervalMs);
|
||||
nativeConfig->set_video_rtcp_report_interval_ms(_rtcpVideoReportIntervalMs);
|
||||
return nativeConfig.release();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user