stopPlayback method
Stops the current playback.
Implementation
Future<void> stopPlayback() async {
await MymediaPlatform.instance.stopPlayback();
if (!_disposed) {
_playingSubject.add(false);
_processingStateSubject.add(ProcessingState.idle);
_positionSubject.add(0);
// Hide notification
_notificationService.hideNotification();
}
// Abandon audio focus
await _focusManager.abandonFocus();
}