enableCustomAudioCapture method
- bool enable
开启/关闭自定义音频采集
注意:
- 在此模式下,SDK 不再从麦克风采集声音,只保留编码和发送能力。
- 需要在 startPush 前调用才会生效。
参数:
enable
true: 开启自定义采集; false: 关闭自定义采集。【默认值】: false
返回值:
0
成功,更多信息请查看 V2TXLiveCode
Implementation
Future<V2TXLiveCode> enableCustomAudioCapture(bool enable) async {
var result = await _channel.invokeMethod(
'enableCustomAudioCapture', {"enable": enable});
return _liveCodeWithResult(result);
}