initBackgroundPlayer method
void
initBackgroundPlayer()
Implementation
void initBackgroundPlayer() {
playbackState.add(
playbackState.value.copyWith(
controls: [
MediaControl.skipToPrevious,
MediaControl.pause,
MediaControl.skipToNext,
],
systemActions: const {
MediaAction.seek,
},
androidCompactActionIndices: const [0, 1, 3],
playing: false,
processingState: AudioProcessingState.idle,
),
);
}