setRemoteUserPriority method

FutureOr<int> setRemoteUserPriority(
  1. String roomid,
  2. String uid,
  3. RemoteUserPriority priority
)

@detail api @author panjian.fishing @brief Set user priority. @param roomid Room ID @param uid
The ID of the remote user. @param priority
Priority for remote users. See enumeration type RemoteUserPriority{@link #RemoteUserPriority}. @return - 0: Success. - < 0 : Fail. See ReturnStatus{@link #ReturnStatus} for more details. @note - This method is used with setSubscribeFallbackOption{@link #RTCEngine#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(
    String roomid, String uid, RemoteUserPriority priority) async {
  return await nativeCall(
      'setRemoteUserPriority', [roomid, uid, priority.$value]);
}