disableAlphaChannelVideoEncode method

Future<int?> disableAlphaChannelVideoEncode()

@valid since 3.58 @detail api @hiddensdk(audiosdk) @region Video Management @brief Disables the Alpha channel encoding feature for externally captured video frames. @return Method call result:
- 0: Success. - < 0: Failure. See ReturnStatus{@link #ReturnStatus} for more details. @note This API must be called after stopping the publish of the video stream.

Implementation

Future<int?> disableAlphaChannelVideoEncode() async {
  $a() => ($instance as $p_a.RTCEngine).disableAlphaChannelVideoEncode();
  $i() => ($instance as $p_i.ByteRTCEngine).disableAlphaChannelVideoEncode();

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