Repository navigation
Add automatic intro/outro skipping - #431
Merged
Merged
Conversation
Introduce a global toggle with configurable intro and outro durations (0-120 seconds). Add the preference entries, view model state and a settings item under Play. Co-Authored-By: Claude Code <noreply@anthropic.com>
Seek to the configured intro position when a track starts, keeping an existing resume position if it is already past the intro. While playing, detect the outro cutoff and advance according to the current repeat and shuffle mode, restarting the track in repeat-one mode. Songs shorter than intro plus outro are left untouched. Co-Authored-By: Claude Code <noreply@anthropic.com>
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.
Summary
Adds an optional global setting to skip a configurable amount of time at the beginning and end of each track. Closes #430.
Useful for live recordings, audiobooks, podcasts and DJ mixes where the first and last seconds are often silence, applause or spoken intros.
Behavior
duration − outro, the track advances using the current repeat/shuffle modeImplementation
SettingPrefs; the settings state is exposed throughPlaySettingsSkipIntroOutroLogicsettings item follows the existing*Logic.kt+SwitchPreferencepatternMusicServicepolls the outro cutoff every 200 ms while playback is active and the option is enabled (independent of screen state)PlaybackgainsnextIndexRespectingModeandseekToIndex; next-item resolution usesPlayer.nextMediaItemIndexso shuffle order and repeat modes match natural playbackVerification
./gradlew :app:assembleFossReleasesucceeds (JDK 17, AGP 9.2.1)🤖 Generated with Claude Code