-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Add support for automatically having OSC visible on pause. #8107
Comments
No. The easiest way is that you use a script similar to this one: mp.observe_property("pause", "bool", function(name, val)
mp.commandv("script-message", "osc-visibility", val and "always" or "auto")
end) However, I think there's currently a bug in mpv which sometimes prevents it from becoming visible when pausing. |
Yeah, that happens on windows.
|
Thanks, both of you, this works great! I was tinkering around with trying to remove the osd message yesterday but it would not work properly. @oe-d I wonder why the |
To be clear it works perfectly if I include it. |
Graphics sometimes doesn't render if the player is paused and there's no mouse movement or osd messages. Clicking the mute icon when paused doesn't update the graphic until you move the mouse or unpause. It can be done though, as uosc renders when paused. |
This won't block the default osd. overlay = mp.create_osd_overlay("ass-events")
mp.observe_property("pause", "bool", function(name, val)
mp.commandv("script-message", "osc-visibility", val and "always" or "auto", "no-osd")
overlay:update()
mp.add_timeout(0.05, function() overlay:remove() end)
end) |
Thank you, I'll try using that, I'm closing this now. |
Hi, it would be nice for an option that allows the bottom bar to be visible when the video is paused. I think the easiest way to do this would be to add it to the OSC visibility cycle:
Expected behavior of the wanted feature
Cycling between OSC visibility should include the option of showing it when video is paused.
Alternative behavior of the wanted feature
Only allows cycling between never / auto (mouse-move) / always
Log file
None
The text was updated successfully, but these errors were encountered: