Skip to content

Conversation

@NicholasFlamy
Copy link
Collaborator

Description

With the "Play video thumbnail on hover" toggle enabled, videos play when you hover over them. When you hover over the play icon, it re-enables playback. Then, when you move off of the icon onto the rest of the video, it stops.

My proposed solution does not alter the behavior when the "Play video thumbnail on hover" toggle is disabled.

How Has This Been Tested?

  • Ran a dev instance

Videos

Old Behavior:

Screen.Recording.2025-02-09.211435.mp4

New Behavior:

Screen.Recording.2025-02-09.211518.mp4

Checklist:

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if applicable
  • I have no unrelated changes in the PR.
  • I have confirmed that any new dependencies are strictly necessary.
  • I have written tests for new code (if applicable)
  • I have followed naming conventions/patterns in the surrounding code
  • All code in src/services uses repositories implementations for database calls, filesystem operations, etc.
  • All code in src/repositories/ is pretty basic/simple and does not have any immich specific logic (that belongs in src/services)

curve={selected}
durationInSeconds={timeToSeconds(asset.duration)}
playbackOnIconHover
playbackOnIconHover={!$playVideoThumbnailOnHover}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This seemed like the simplest way to accomplish this. I disable playbackOnIconHover when the "Play video thumbnail on hover" toggle is enabled, so that playbackOnIconHover doesn't interfere.

@NicholasFlamy NicholasFlamy marked this pull request as ready for review February 24, 2025 21:48
Copy link
Member

@alextran1502 alextran1502 left a comment

Choose a reason for hiding this comment

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

Thanks

@alextran1502 alextran1502 merged commit 392f9f2 into immich-app:main Feb 25, 2025
39 of 40 checks passed
@NicholasFlamy NicholasFlamy deleted the fix/thumbnail-playback-hover-icon-then-asset branch March 11, 2025 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants