startPlayer method

Future<bool> startPlayer(
  1. String key,
  2. FinishMode finishMode
)

platform call to start player

Implementation

Future<bool> startPlayer(String key, FinishMode finishMode) async {
  var result = await _methodChannel.invokeMethod(Constants.startPlayer, {
    Constants.playerKey: key,
    Constants.finishMode: finishMode.index,
  });
  return result ?? false;
}