disableVirtualBackground method

Future<int?> disableVirtualBackground()

@detail api @author wangjunlin.3182 @brief Turns off the virtual background. @return - 0: Success. - –1000: The Effects SDK is not integrated. - –1001: This API is unavailable for your Effects SDK. - –1002: Your Effects SDK's version is incompatible. - < 0: Other error. See error code table for specific instructions. @note After calling enableVirtualBackground{@link #IVideoEffect#enableVirtualBackground} to enable the virtual background function, you can call this API to turn it off.

Implementation

Future<int?> disableVirtualBackground() async {
  $a() => ($instance as $p_a.IVideoEffect).disableVirtualBackground();
  $i() => ($instance as $p_i.ByteRTCVideoEffect).disableVirtualBackground();

  if (Platform.isAndroid) {
    return $a();
  } else if (Platform.isIOS) {
    return $i();
  } else {
    throw UnsupportedError(
        'Not Support Platform ${Platform.operatingSystem}');
  }
}