celluloid-player / celluloid

A simple GTK+ frontend for mpv
https://celluloid-player.github.io
GNU General Public License v3.0
1.16k stars 92 forks source link

Seeking mechanic is not working correctly #994

Open nextgenthemes opened 1 day ago

nextgenthemes commented 1 day ago

Overview Description: When clicking on a position on the seek bar, the video does NOT jump to that position, instead it seeks forward for a bit.

I do not know is this is intentional but YouTube and pretty much ever other media player I have ever used, including a non-gnome specific MPV frontend (I think it ships with MPV) do it differently.

Steps to Reproduce:

  1. Play video.
  2. Click on any position ahead on the seek bar.
  3. Be disappointed.

Actual Results: Video seeks fast-forward.

Expected Results: Video should just jump to the position clicked.

Version: Celluloid 0.27

Additional Information: Ubuntu 24.10 X11

gnome-mpv commented 1 day ago

It's not intentional. What seems to be happening is that some distros configure GTK so that GtkRange (sliders) behave the way you're seeing. Since the seek bar is implemented with GtkRange, it's affected too. See https://github.com/celluloid-player/celluloid/issues/595#issuecomment-710775057 for a workaround.

nextgenthemes commented 1 day ago

@gnome-mpv Thanks, that is some utterly stupid default that got written to my GTK4 config. It's beyond me why this is even a thing, let alone a default.

Your comment seems outdated for up-to-date Ubuntu/Celuloid. This is what I needed.

In ~/.config/gtk-4.0/settings.ini

gtk-primary-button-warps-slider=true

Fixed it (was false). Never even tried the 3.0 config file.

I guess not a bug then, but something I can not imagine anyone likes. Some hint message maybe? Could this be just overwritten from this app. Maybe it makes more sense for other UI elements, but for sure not for a progress bar in a media player.