setRemoteVideoSuperResolution method

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

@hidden(macOS) for internal use @valid since 3.54 @detail api @hiddensdk(audiosdk) @author yinkaisheng @brief 设置远端视频超分模式。 @param streamId 远端流 ID。 @param mode 超分模式,参看 ByteRTCVideoSuperResolutionMode{@link #ByteRTCVideoSuperResolutionMode}。 @return - 0: ByteRTCReturnStatusSuccess,SDK 调用成功,并不代表超分模式实际状态,需要根据回调 rtcEngine:onRemoteVideoSuperResolutionModeChanged:info:withMode:withReason:{@link #ByteRTCEngineDelegate#rtcEngine:onRemoteVideoSuperResolutionModeChanged:info:withMode:withReason} 判断实际状态。 - -1: ByteRTCReturnStatusNativeInValid,native library 未加载。 - -2: ByteRTCReturnStatusParameterErr,参数非法,指针为空或字符串为空。 - -9: ByteRTCReturnStatusScreenNotSupport,不支持对屏幕流开启超分。 其他错误码参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 @note - 如需使用该功能,需集成超分插件 ByteRTCVideoSRExtension.xcframework 及依赖库 bmf_mods_shared.xcframework,详情参看按需集成插件文档。 - 该方法须进房后调用。 - 远端用户视频流的原始分辨率不能超过 640 × 360 px。 - 支持对一路远端流开启超分,不支持对多路流开启超分。

Implementation

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