A cross platform Audiobookshelf client for Android and iOS
Dart
Fix iOS skip not working from BT devices
Barnabas7d2bd3f21f3f
diff --git a/lib/services/audio_player_service.dart b/lib/services/audio_player_service.dartindex d87a91dc..628312ba 100644--- a/lib/services/audio_player_service.dart+++ b/lib/services/audio_player_service.dart@@ -158,6 +158,11 @@ class AudioPlayerHandler extends BaseAudioHandler with SeekHandler {MediaAction.seekForward,MediaAction.seekBackward,MediaAction.skipToQueueItem,+ // BT next/prev track buttons (steering wheel, AirPods) hit+ // skipToNext/skipToPrevious, not fastForward/rewind. Enabling these+ // mirrors the BT skip to the user's configured X-second jump.+ MediaAction.skipToNext,+ MediaAction.skipToPrevious,},androidCompactActionIndices: compactIndices,processingState: const {@@ -363,6 +368,15 @@ class AudioPlayerHandler extends BaseAudioHandler with SeekHandler {}}+ // BT track-skip (steering wheel, AirPods) routes to skipToNext/Previous on+ // iOS MPRemoteCommandCenter. Mirror ABS / Prologue: apply the user's X-second+ // skip rather than navigating chapters.+ @override+ Future<void> skipToNext() => fastForward();++ @override+ Future<void> skipToPrevious() => rewind();+// Custom click handler with proper multi-press detectionTimer? _clickTimer;int _clickCount = 0;diff --git a/pubspec.yaml b/pubspec.yamlindex 5f83187d..b5b12204 100644--- a/pubspec.yaml+++ b/pubspec.yaml@@ -1,7 +1,7 @@name: absorbdescription: An Audiobookshelf Clientpublish_to: 'none'-version: 1.8.87+129+version: 1.8.87+130environment:sdk: '>=3.1.0 <4.0.0'