isEnableSpeakerphone method

Future<bool> isEnableSpeakerphone()

获取当前音频输出为听筒还是扬声器

注:互动模式下特定接口

enable true:扬声器模式(默认);false:听筒模式

Implementation

Future<bool> isEnableSpeakerphone() async {
  String strV = await _livePusherMethodChannel.invokeMethod(
    'isEnableSpeakerphone',
    wrapArgs(),
  );
  int intV = int.parse(strV);
  return intV == 1 ? true : false;
}