Skip to content

A cross platform Audiobookshelf client for Android and iOS

Dart

Jump to Now Playing when you tap a book in CarPlay

Barnabas69abcfb81c8a
diff --git a/lib/services/carplay_service.dart b/lib/services/carplay_service.dart
index 54a382cf..30c17b19 100644
--- a/lib/services/carplay_service.dart
+++ b/lib/services/carplay_service.dart
@@ -640,5 +640,9 @@ class CarPlayService {
// deprecated compat shim wired only in the old AudioService.start() flow;
// with the modern AudioService.init() it routes to a no-op BaseAudioHandler.
AudioPlayerService.handler?.playFromMediaId(mediaId);
+ // Jump straight to Now Playing on tap, like the native apps, instead of
+ // making the user find the Now Playing button. pushIfNotExist on the native
+ // side means it's a no-op if Now Playing is already on screen.
+ FlutterCarplay.showSharedNowPlaying();
}
}
diff --git a/pubspec.yaml b/pubspec.yaml
index a4a865f3..3cadd71e 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,7 +1,7 @@
name: absorb
description: An Audiobookshelf Client
publish_to: 'none'
-version: 1.8.97+169
+version: 1.8.97+170
environment:
sdk: '>=3.1.0 <4.0.0'