preparePlayer method
platform call to prepare player
Implementation
Future<bool> preparePlayer({
required String path,
required String key,
required int frequency,
double? volume,
bool overrideAudioSession = false,
}) async {
var result = await _methodChannel.invokeMethod(Constants.preparePlayer, {
Constants.path: path,
Constants.volume: volume,
Constants.playerKey: key,
Constants.updateFrequency: frequency,
Constants.overrideAudioSession: overrideAudioSession,
});
return result ?? false;
}