startPlayer method

  1. @override
Future<int> startPlayer(
  1. FlutterSoundPlayerCallback callback, {
  2. Codec? codec,
  3. Uint8List? fromDataBuffer,
  4. String? fromURI,
  5. int? numChannels,
  6. int? sampleRate,
  7. int bufferSize = 20480,
})
override

Implementation

@override
Future<int> startPlayer(
  FlutterSoundPlayerCallback callback, {
  Codec? codec,
  Uint8List? fromDataBuffer,
  String? fromURI,
  int? numChannels,
  int? sampleRate,
  int bufferSize = 20480,
}) {
  return invokeMethod(
    callback,
    'startPlayer',
    {
      'codec': codec!.index,
      'fromDataBuffer': fromDataBuffer,
      'fromURI': fromURI,
      'numChannels': numChannels,
      'sampleRate': sampleRate,
      'bufferSize': bufferSize,
    },
  );
}