enableCustomAudioCapture method

Future<V2TXLiveCode> enableCustomAudioCapture(
  1. bool enable
)

Turn on/off custom audio capture

Note:

  • In this mode, the SDK no longer captures sound from the microphone, only retaining the encoding and sending capabilities.
  • It needs to be called before startPush for it to take effect.

Parameter:

enable true: Enable custom collection; false: Disables custom collection. Default: false

Return:

'0' success, more information please see V2TXLiveCode

Implementation

Future<V2TXLiveCode> enableCustomAudioCapture(bool enable) async {
  var result = await _channel.invokeMethod(
      'enableCustomAudioCapture', {"enable": enable});
  return _liveCodeWithResult(result);
}