ios_startChorusCacheSync method
Future<int?>
ios_startChorusCacheSync(
- ByteRTCChorusCacheSyncConfig config,
- id<
ByteRTCChorusCacheSyncObserver> observer
@platform ios @hidden internal use only @detail api @hiddensdk(audiosdk) @brief Start aligning RTC data by cache. Received RTC data from different sources will be cached, and aligned based on the included timestamps. This feature compromizes the real-time nature of RTC data consumption. @param config See ByteRTCChorusCacheSyncConfig{@link #ByteRTCChorusCacheSyncConfig}. @param observer Event and data observer. See ByteRTCChorusCacheSyncObserver{@link #ByteRTCChorusCacheSyncObserver}. @return See ByteRTCReturnStatus{@link #ByteRTCReturnStatus}. @note To disable the feature, call stopChorusCacheSync{@link #ByteRTCEngine#stopChorusCacheSync}.
Implementation
Future<int?> ios_startChorusCacheSync(
$p_i.ByteRTCChorusCacheSyncConfig config,
id<$p_i.ByteRTCChorusCacheSyncObserver> observer) async {
$() => ($instance as $p_i.ByteRTCEngine)
.startChorusCacheSync(config, observer);
if (Platform.isIOS) {
return $();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}