Skip to content

A cross platform Audiobookshelf client for Android and iOS

Dart

Start at the bookmark or chapter you tapped on a downloaded book instead of jumping ahead to the server position

Barnabas71fa29e11500
diff --git a/lib/services/audio_player_service.dart b/lib/services/audio_player_service.dart
index 2c6805aa..b073258d 100644
--- a/lib/services/audio_player_service.dart
+++ b/lib/services/audio_player_service.dart
@@ -3521,7 +3521,11 @@ class AudioPlayerService extends ChangeNotifier {
// (GH #321) - unless this phone has no position for it at all, where
// starting from zero would be the wrong guess and there is nothing to
// preserve. Whatever position we start with, we keep - no seeking after.
- if (!_playFromUi && startTime > 0) {
+ if (forceStartTime) {
+ debugPrint(
+ '[Player] Forced start time: ${startTime}s — skipping server/local position comparison',
+ );
+ } else if (!_playFromUi && startTime > 0) {
debugPrint(
'[Player] Skipping progress reconcile - not started from the app screen, playing local position ${startTime.toStringAsFixed(1)}s now',
);