startAudioMixingFromAssets method

Future<int> startAudioMixingFromAssets({
  1. required String path,
  2. required RCRTCAudioMixingMode mode,
  3. bool playback = true,
  4. int loop = 1,
  5. double position = 0,
})

Implementation

Future<int> startAudioMixingFromAssets({
  required String path,
  required RCRTCAudioMixingMode mode,
  bool playback = true,
  int loop = 1,
  double position = 0,
}) async {
  Map<String, dynamic> arguments = {
    'assets': path,
    'mode': mode.index,
    'playback': playback,
    'loop': loop,
    'position': position,
  };
  int code = await _channel.invokeMethod('startAudioMixing', arguments) ?? -1;
  return code;
}