preparePlayer method

Future<bool> preparePlayer(
  1. String path,
  2. String key, [
  3. double? volume
])

platform call to prepare player

Implementation

Future<bool> preparePlayer(String path, String key, [double? volume]) async {
  var result = await _methodChannel.invokeMethod(Constants.preparePlayer, {
    Constants.path: path,
    Constants.volume: volume,
    Constants.playerKey: key,
  });
  return result ?? false;
}