setRemoteVideoConfig abstract method
Sets your expected configuration of the remote video stream that you want to subscribe to or have subscribed to.
uid
: ID of the remote video stream publisher you expect to configure subscription parameters for.
videoConfig
: The parameters you expect to configure for the remote video stream.
See ReturnStatus for return values.
Notes:
- This API only works after the publisher calls RTCVideo.enableSimulcastMode to enable publishing multiple video streams, in which case the subscriber will receive the stream from the publisher that is closest to the set configuration; otherwise the subscriber will only receive one video stream with a resolution of 640px × 360px and a frame rate of 15fps.
- If you don't call this API after the publisher enables the function of publishing multiple streams, you will receive by default the video stream with the largest resolution set by the publisher.
- You should call this API in the room. If you want to call it before entering the room, you should set the
remoteVideoConfig
in theroomConfig
when calling RTCRoom.joinRoom. - SDK will automatically select the stream to be published or subscribed based on the settings of both sides. See Simulcasting for details.
Implementation
Future<int?> setRemoteVideoConfig({
required String uid,
required RemoteVideoConfig videoConfig,
});