setRemoteVideoStreamType abstract method
- String userId,
- 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:
- streamType(TRTCVideoStreamType):
- Video stream type, i.e., big image or small image.
- Default value: TRTCVideoStreamType.big
- userId(String):
- ID of the specified remote user.
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);