setRemoteUserPriority method
Sets the priority of a remote user's media stream.
Use this method with the RtcEngine.setRemoteSubscribeFallbackOption method. If a remote video stream experiences the fallback, the SDK ensures the high-priority user gets the best possible stream quality.
Note
- The Agora SDK supports setting
userPriority
asHigh
for one user only.
Parameter uid
The ID of the remote user.
Parameter userPriority
The priority of the remote user. See UserPriority.
Implementation
@override
Future<void> setRemoteUserPriority(int uid, UserPriority userPriority) {
return _invokeMethod('setRemoteUserPriority', {
'uid': uid,
'userPriority': UserPriorityConverter(userPriority).value()
});
}