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 Receives the callback when the producer or retransmitter changes. @param uids Current list of the participants @note You may receive the callback is the following cases:
- The user calls startChorusCacheSync:observer:{@link #ByteRTCEngine#startChorusCacheSync:observer} or stopChorusCacheSync{@link #ByteRTCEngine#stopChorusCacheSync}; - The cache syncing participant quits abnormally.
onSyncedVideoFrames$withUids(NSArray<id<ByteRTCVideoFrame>> videoFrames, NSArray<NSString> uids) FutureOr<void>
@detail callback @brief The user who calls startChorusCacheSync:observer:{@link #ByteRTCEngine#startChorusCacheSync:observer} as consumer receives the callback with synced video frames. The interval of receiving the callback is set by fps. @param count length of uids @param uids The list of participants as producer and retransmitter. The participants not sending media data are excluded. @param videoFrames Video data frame corresponding to uids. See ByteRTCVideoFrame{@link #ByteRTCVideoFrame}.
onSyncEvent$withError(ByteRTCChorusCacheSyncEvent event, ByteRTCChorusCacheSyncError error) FutureOr<void>
@detail callback @brief Chorus cache sync event callback @param event See ByteRTCChorusCacheSyncEvent{@link #ByteRTCChorusCacheSyncEvent}. @param error See 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