startChorusCacheSync method
FutureOr<int>
startChorusCacheSync(
- ByteRTCChorusCacheSyncConfig config,
- id<
ByteRTCChorusCacheSyncObserver> observer
@hidden internal use only @detail api @hiddensdk(audiosdk) @author liujingchao @brief 开启缓存同步功能。开启后,会缓存收到的实时音视频数据,并对齐不同数据中的时间戳完成同步。此功能会影响音视频数据消费的实时性。 @param config 参看 ByteRTCChorusCacheSyncConfig{@link #ByteRTCChorusCacheSyncConfig}。 @param observer 事件和数据观察者,参看 ByteRTCChorusCacheSyncObserver{@link #ByteRTCChorusCacheSyncObserver}。 @return 查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 @note 要关闭缓存同步功能,调用 stopChorusCacheSync{@link #ByteRTCEngine#stopChorusCacheSync}。
Implementation
FutureOr<int> startChorusCacheSync(ByteRTCChorusCacheSyncConfig config,
id<ByteRTCChorusCacheSyncObserver> observer) async {
return await nativeCall(
'startChorusCacheSync:observer:', [config, observer]);
}