setRemoteVideoStreamType method
Select whether to view the big or small image of the specified uid
Note:
- To implement this feature, the dual-channel encoding mode must be enabled by the
uid
through enableEncSmallVideoStream; otherwise, this operation will not take effect. - If this API is not called to set the image, the image watched through startRemoteView is the big image by default.
Parameters:
userId
: User ID
streamType
: Video stream type, i.e., big image (TRTCCloudDef.TRTC_VIDEO_STREAM_TYPE_BIG) or small image (TRTCCloudDef.TRTC_VIDEO_STREAM_TYPE_SMALL). Default value: big image
Platform not supported:
- web
Implementation
Future<int?> setRemoteVideoStreamType(
String userId, // User ID
int streamType // Video stream type, i.e., big image or small image. Default value: big image
) {
return _cloudChannel!.invokeMethod('setRemoteVideoStreamType', {
"userId": userId,
"streamType": streamType,
});
}