startChorusCacheSync method
FutureOr<int>
startChorusCacheSync(
- ByteRTCChorusCacheSyncConfig config,
- id<
ByteRTCChorusCacheSyncObserver> observer
@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
FutureOr<int> startChorusCacheSync(ByteRTCChorusCacheSyncConfig config,
id<ByteRTCChorusCacheSyncObserver> observer) async {
return await nativeCall(
'startChorusCacheSync:observer:', [config, observer]);
}