android_enableSpeakerphone method
@platform android
@detail api
@author luomingkang
@brief 加入游戏房间后,开启或关闭扬声器。
@param enable 是否开启扬声器:
- true:开启扬声器,接收所有远端用户的音频流。
- false:默认设置。关闭扬声器,停止接收所有远端用户的音频流。
@return
- 0:接口调用成功。
- -3:接口调用失败。没有加入房间。
Implementation
Future<int?> android_enableSpeakerphone(bool enable) async {
$() => ($instance as $p_a.RTCRoom).enableSpeakerphone(enable);
if (Platform.isAndroid) {
return $();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}