Skip to content

Commit

Permalink
Thumbnailer_OSC的OSD信息修改
Browse files Browse the repository at this point in the history
  • Loading branch information
hooke007 committed Jul 20, 2021
1 parent 9dccc82 commit 28c96d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/Thumbnailer_OSC.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ COMMIT_20210706_11c840d
SOURCE_https://github.com/mpv-player/mpv/blob/master/player/lua/osc.lua
COMMIT_20210705_d2dd4ca
缩略图引擎的OSC部分
示例在 input.conf 中写入:
SHIFT+DEL script-binding Thumbnailer_OSC/visibility # 切换 Thumbnailer_OSC的可见性
--]]

local orig_osc = mp.get_property('osc')
Expand Down Expand Up @@ -3296,7 +3299,7 @@ function visibility_mode(mode, no_osd)
utils.shared_script_property_set("osc-visibility", mode)

if not no_osd and tonumber(mp.get_property("osd-level")) >= 1 then
mp.osd_message("OSC visibility: " .. mode)
mp.osd_message("Thumbnailer_OSC的可见性:" .. mode)
end

-- Reset the input state on a mode change. The input state will be
Expand Down

0 comments on commit 28c96d9

Please sign in to comment.