setRemoteVideoSuperResolution method

FutureOr<int> setRemoteVideoSuperResolution(
  1. NSString streamId,
  2. ByteRTCVideoSuperResolutionMode mode
)

@hidden not available @detail api @hiddensdk(audiosdk) @author yinkaisheng @brief Sets the super resolution mode for remote video stream. @param streamId ID of Remote stream. @param mode Super resolution mode. See ByteRTCVideoSuperResolutionMode{@link #ByteRTCVideoSuperResolutionMode}. @return.
- 0: ByteRTCReturnStatusSuccess. It does not indicate the actual status of the super resolution mode, you should refer to rtcEngine:onRemoteVideoSuperResolutionModeChanged:info:withMode:withReason:{@link #ByteRTCEngineDelegate#rtcEngine:onRemoteVideoSuperResolutionModeChanged:info:withMode:withReason} callback. - -1: ByteRTCReturnStatusNativeInValid. Native library is not loaded. - -2: ByteRTCReturnStatusParameterErr. Invalid parameter. - -9: ByteRTCReturnStatusScreenNotSupport. Failure. Screen stream is not supported. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more return value indications. @note - Call this API after joining room. - The original resolution of the remote video stream should not exceed 640 × 360 pixels. - You can only turn on super-resolution mode for one stream.

Implementation

FutureOr<int> setRemoteVideoSuperResolution(
    NSString streamId, ByteRTCVideoSuperResolutionMode mode) async {
  return await nativeCall(
      'setRemoteVideoSuperResolution:withMode:', [streamId, mode.$value]);
}