Skip to content

Conversation

@naveensingh
Copy link
Member

This keeps the seek behavior consistent with the Music Player (FossifyOrg/Music-Player#97).

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR disables automatic playback when seeking in a paused video, aligning the behavior with the Fossify Music Player. The changes remove code that would start playback after seeking when the video was paused, ensuring that the play/pause state is preserved during seek operations.

Key changes:

  • Removed auto-play logic from onStopTrackingTouch in both video player implementations
  • Removed auto-play logic after drag gestures in VideoPlayerActivity
  • Updated changelog to document the behavioral change

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
app/src/main/kotlin/org/fossify/gallery/fragments/VideoFragment.kt Removed else clause that would call playVideo() when seeking while paused, preserving the paused state
app/src/main/kotlin/org/fossify/gallery/activities/VideoPlayerActivity.kt Removed auto-play logic in two locations: after drag gestures (ACTION_UP) and in onStopTrackingTouch, ensuring consistency with the fragment implementation
CHANGELOG.md Added entry under "Changed" section documenting that the player now respects play/pause state when seeking

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

This keeps the behavior consistent with Music Player (see FossifyOrg/Music-Player#97)
# Conflicts:
#	CHANGELOG.md
@naveensingh naveensingh force-pushed the naveensingh/disable-autoplay-on-seek branch from 35532ea to 48b4390 Compare December 13, 2025 12:08
@naveensingh naveensingh merged commit 1d1cbe4 into main Dec 13, 2025
6 checks passed
@naveensingh naveensingh deleted the naveensingh/disable-autoplay-on-seek branch December 13, 2025 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants