ios_startChorusCacheSync method

Future<int?> ios_startChorusCacheSync(
  1. ByteRTCChorusCacheSyncConfig config,
  2. id<ByteRTCChorusCacheSyncObserver> observer
)

@platform ios @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

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}');
  }
}