Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

display osc instead of progress bar on seek #7891

Closed
github-account1111 opened this issue Jul 8, 2020 · 11 comments
Closed

display osc instead of progress bar on seek #7891

github-account1111 opened this issue Jul 8, 2020 · 11 comments
Labels
core:option-param-conf config, parameters, properties, options, shortcuts meta:feature-request scripting:osc

Comments

@github-account1111
Copy link

github-account1111 commented Jul 8, 2020

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

@hooke007
Copy link
Contributor

@github-account1111 github-account1111 changed the title display osd instead of progress bar on seek display osc instead of progress bar on seek Jul 11, 2020
@github-account1111
Copy link
Author

github-account1111 commented Jul 11, 2020

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.

@jaseg
Copy link
Contributor

jaseg commented Jul 19, 2020

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

@muzzol
Copy link

muzzol commented Jan 22, 2023

is there any work being done on this issue?

@pbaykalov
Copy link

pbaykalov commented Mar 15, 2023

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

@danielb2
Copy link

I too am missing this

@AndydeCleyre
Copy link

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

@Yutsuten
Copy link

Yutsuten commented May 16, 2024

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.

@Xiarno
Copy link

Xiarno commented Jun 3, 2024

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.

@guidocella
Copy link
Contributor

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)

@kasper93
Copy link
Contributor

Fixed by: #14358

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core:option-param-conf config, parameters, properties, options, shortcuts meta:feature-request scripting:osc
Projects
None yet
Development

No branches or pull requests