startPlayer method
Future<int>
startPlayer(
- FlutterSoundPlayerCallback callback, {
- Codec? codec,
- Uint8List? fromDataBuffer,
- String? fromURI,
- int? numChannels,
- int? sampleRate,
- 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,
},
);
}