Add rewind after interruptions setting - #4788
Open
mpgirro wants to merge 2 commits into
Open
Conversation
Rewinds playback by a configurable number of seconds (off, 5-60s, default 5s) when it resumes after an audio interruption such as a call, alarm or navigation prompt. When both this and intelligent playback resumption would rewind the same resume, the larger amount wins so they never stack. Behind the interruptionRewind feature flag. Device-local setting, not synced.
10 tasks
Contributor
|
Thanks for the suggestion and for taking the time to put together a PR. We've discussed it with the team and, at least for now, we don't plan to add a separate interruption rewind setting. We appreciate the effort and will keep the feedback in mind as we continue to improve the listening experience. |
kean
removed their request for review
July 29, 2026 19:08
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds an optional "Rewind after interruptions" setting: when playback resumes after an audio interruption (phone call, alarm, Siri, CarPlay navigation prompt or another app taking over audio), Pocket Casts seeks back a configurable number of seconds so listeners don't lose context. This is especially useful in the car, where navigation prompts regularly interrupt playback. A matching PR with identical behavior is open for Android: Automattic/pocket-casts-android#5611.
Behavior
.shouldResume) and manual resume after an interruption-caused pause.interruptionRewindfeature flag (default: debug builds only). The setting is device-local; adding it to named-settings sync would need a server-side key and is left as a possible follow-up for maintainers.Implementation notes
playedUpToduring the interruption andPlaybackCatchUpHelper's position guard rejected the adjustment on resume. This also benefits the existing Intelligent Playback Resumption after interruptions.PlaybackCatchUpHelpernow computes the pause-length ladder and the interruption rewind separately and appliesmax()of the two.To test
interruptionRewindis enabled by default there) and start playing an episode.Checklist
CHANGELOG.mdif necessary.settingsGeneralInterruptionRewindChangedevent (value property = chosen seconds); I can't edit the schema repo as an external contributor.