rtcRoom$onAVSyncStateChange method
@detail callback @author wangzhanqiang @brief Stream publisher will receive this callback when the A/V synchronization state changes after setMultiDeviceAVSync:{@link #ByteRTCRoom#setMultiDeviceAVSync} is called. @param rtcRoom The ByteRTCRoom instance. @param state A/V synchronization state, see ByteRTCAVSyncState{@link #ByteRTCAVSyncState}.
Implementation
FutureOr<void> rtcRoom$onAVSyncStateChange(
dynamic rtcRoom, dynamic state) async {
if ($instance == null || $instance is! IRTCRoomEventHandler) {
return;
}
return ($instance as IRTCRoomEventHandler).onAVSyncStateChange?.call(
t_AVSyncState.ios_to_code($p_i.ByteRTCAVSyncState.values
.firstWhere((t) => t.$value == state || t.name == state)));
}