setRemoteVideoStreamType abstract method

void setRemoteVideoStreamType(
  1. String userId,
  2. TRTCVideoStreamType streamType
)

Switch the big/small image of specified remote user

After an anchor in a room enables dual-channel encoding, the video image that other users in the room subscribe to through startRemoteView will be HD big image by default.

You can use this API to select whether the image subscribed to is the big image or small image. The API can take effect before or after startRemoteView is called.

Parameters:

Note: To implement this feature, the target user must have enabled the dual-channel encoding mode through enableSmallVideoStream; otherwise, this API will not work.

Implementation

void setRemoteVideoStreamType(String userId, TRTCVideoStreamType streamType);