setRemoteUserPriority method

FutureOr<int> setRemoteUserPriority(
  1. ByteRTCRemoteUserPriority priority,
  2. NSString roomId,
  3. NSString uid
)

@detail api @author panjian.fishing @brief Sets user priority @param priority Priority of remote user. See enumeration type ByteRTCRemoteUserPriority{@link #ByteRTCRemoteUserPriority} @param roomId Room ID @param uid ID of remote user @return - 0: Success. - < 0 : Fail. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details. @note - This method is used with setSubscribeFallbackOption:{@link #ByteRTCEngine#setSubscribeFallbackOption}. - If the subscription flow fallback option is turned on, weak connections or insufficient performance will give priority to ensuring the quality of the flow received by high-priority users. - This method can be used before and after entering the room, and the priority of the remote user can be modified.

Implementation

FutureOr<int> setRemoteUserPriority(
    ByteRTCRemoteUserPriority priority, NSString roomId, NSString uid) async {
  return await nativeCall(
      'setRemoteUserPriority:InRoomId:uid:', [priority.$value, roomId, uid]);
}