android_enableSubscribeLocalStream method

Future<int?> android_enableSubscribeLocalStream(
  1. bool enable
)

@platform android @hidden for internal use only. @detail api @author shenpengliang @brief 设置是否订阅自己的流 @param enable 订阅自己/不订阅自己 @return - 0: 调用成功。 - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。

Implementation

Future<int?> android_enableSubscribeLocalStream(bool enable) async {
  $() => ($instance as $p_a.RTCRoom).enableSubscribeLocalStream(enable);

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