closePlayer method

  1. @override
Future<int> closePlayer(
  1. FlutterSoundPlayerCallback callback
)
override

Implementation

@override
Future<int> closePlayer(
  FlutterSoundPlayerCallback callback,
) async {
  int slotno = findSession(callback);
  int r = _slots[slotno]!.releaseMediaPlayer();
  _slots[slotno] = null;
  return r;
}