ByteRTCChorusCacheSyncObserver class

Inheritance
  • Object
  • NativeClass
  • NativeObserverClass
  • ByteRTCChorusCacheSyncObserver

Constructors

ByteRTCChorusCacheSyncObserver([NativeClassOptions? options])

Properties

$instance ↔ dynamic
getter/setter pairinherited
$resource → NativeResource
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
ready Future<void>
Whether the instance is initialized
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

destroy() → void
inherited
emit(String name, List args) → dynamic
inherited
nativeCall<T>(String method, [List? args, NativeMethodMeta? meta]) Future<T>
Call instance method
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onSyncedUsersChanged(NSArray<NSString> uids) FutureOr<void>
@detail callback @brief 参与合唱缓存同步的 producerretransmitter 发生变化时,收到此回调。 @param uids 当前的参与者列表 @note 有以下情况可能造成参与者发生变化:
- 用户主动调用 startChorusCacheSync:observer:{@link #ByteRTCEngine#startChorusCacheSync:observer} 或 stopChorusCacheSync{@link #ByteRTCEngine#stopChorusCacheSync}; - 原本参与缓存同步的用户发生异常退出。
onSyncedVideoFrames$withUids(NSArray<id<ByteRTCVideoFrame>> videoFrames, NSArray<NSString> uids) FutureOr<void>
@detail callback @brief 调用 startChorusCacheSync:observer:{@link #ByteRTCEngine#startChorusCacheSync:observer},并设置为 consumer 的用户会通过此回调获取经缓存同步后的视频帧。获取频率通过启动同步时的 fps 进行设置。 @param videoFrames 对应 uids 的视频帧。参看 ByteRTCVideoFrame{@link #ByteRTCVideoFrame}。 @param uids 参与合唱缓存同步的 producerretransmitter 的列表,不包括参与但未发送媒体数据的用户。
onSyncEvent$withError(ByteRTCChorusCacheSyncEvent event, ByteRTCChorusCacheSyncError error) FutureOr<void>
@detail callback @brief 缓存同步事件回调 @param event 事件,参看 ByteRTCChorusCacheSyncEvent{@link #ByteRTCChorusCacheSyncEvent}。 @param error 错误码,参看 ByteRTCChorusCacheSyncError{@link #ByteRTCChorusCacheSyncError}。
registerEvent(String name, dynamic method) → void
inherited
sendInstanceGet<T>(String property) Future<T>
Get instance property
inherited
sendInstancePropertiesGet(dynamic nativeClass) Future<Map<String, dynamic>>
Get instance properties
inherited
sendInstanceSet(String property, dynamic value) Future<void>
Set instance property
inherited
toString() String
A string representation of this object.
inherited
updateInstance(dynamic instance) → void
inherited
updateResource(NativeResource resource) → void
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited