startAudioMixingFromAssets method
Future<int>
startAudioMixingFromAssets({
- required String path,
- required RCRTCAudioMixingMode mode,
- bool playback = true,
- int loop = 1,
- 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;
}