mpv icon indicating copy to clipboard operation
mpv copied to clipboard

display osc instead of progress bar on seek

Open github-account1111 opened this issue 5 years ago • 8 comments

Whenever I seek the video, progress bar gets displayed. Any way to display the regular OSC instead (one that appears when I move mouse)?

github-account1111 avatar Jul 08 '20 23:07 github-account1111

one of the solutions. https://mpv.io/manual/master/#options-no-osd-bar https://mpv.io/manual/master/#key-bindings

hooke007 avatar Jul 10 '20 15:07 hooke007

I don't see how that's a solution. With the del option I can only cycle through visibility modes. Same with https://mpv.io/manual/master/#on-screen-controller-osc-visibility.

I've searched some more, and I think this might be a duplicate of #2891.

github-account1111 avatar Jul 11 '20 08:07 github-account1111

Check out python-mpv issue #124. The lua script there is a workaround until this gets solved in mpv.

jaseg avatar Jul 19 '20 10:07 jaseg

is there any work being done on this issue?

muzzol avatar Jan 22 '23 20:01 muzzol

Also it's possible to disable pop-up seek bar. I'm using that plus what Jaseg suggested.

pbaykalov avatar Mar 15 '23 15:03 pbaykalov

I too am missing this

danielb2 avatar Dec 16 '23 22:12 danielb2

FWIW I just learned to love uosc, which makes this easy.

AndydeCleyre avatar Dec 16 '23 22:12 AndydeCleyre

Also it's possible to disable pop-up seek bar.

To save a few minutes of search for those who want to do the same thing, this is the setting you should put into mpv.conf:

osd-on-seek=no

Just to be clear, this just disables OSD on seek, there is no option to show OSC on seek yet.


Edit

Using v0.39.0 or newer this now can be done cleanly with a scripts/osc.lua (filename can be anything):

function show_osc()
    mp.commandv("script-message", "osc-show")
end

mp.register_event("seek", show_osc)
mp.observe_property("pause", "bool", show_osc)

This also shows OSC when toggling pause, comment out or remove if it's not desired.

Yutsuten avatar May 16 '24 01:05 Yutsuten

Also it's possible to disable pop-up seek bar.

To save a few minutes of search for those who want to do the same thing, this is the setting you should put into mpv.conf:

osd-on-seek=no

Just to be clear, this just disables OSD on seek, there is no option to show OSC on seek yet.

Would love to show OSC on seek.

Xiarno avatar Jun 03 '24 01:06 Xiarno

local timer = mp.add_timeout(1, function ()
    mp.command('script-message osc-visibility auto ""')
end, true)

mp.register_event('seek', function ()
    mp.command('script-message osc-visibility always ""')
    timer:kill()
    timer:resume()
end)

guidocella avatar Jun 03 '24 07:06 guidocella

Fixed by: https://github.com/mpv-player/mpv/pull/14358

kasper93 avatar Jun 15 '24 23:06 kasper93