# setRemoteVideoStreamType method Null safety

Future<int?> setRemoteVideoStreamType(

1. String userId,
2. int streamType

)

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

## 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 _channel.invokeMethod('setRemoteVideoStreamType', {
        "userId": userId,
        "streamType": streamType,
      });
    }