Upload files to 'mpv/scripts'
This commit is contained in:
parent
875743a555
commit
5b21c9685f
12
mpv/scripts/freezer.lua
Normal file
12
mpv/scripts/freezer.lua
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
local size_changed = false
|
||||||
|
|
||||||
|
mp.register_idle(function()
|
||||||
|
if not size_changed then return end
|
||||||
|
local ww, wh = mp.get_osd_size()
|
||||||
|
if not ww or ww <= 0 or not wh or wh <= 0 then return end
|
||||||
|
mp.set_property("geometry", string.format("%dx%d", ww, wh))
|
||||||
|
size_changed = false
|
||||||
|
end)
|
||||||
|
|
||||||
|
mp.observe_property("osd-width", "native", function() size_changed = true end)
|
||||||
|
mp.observe_property("osd-height", "native", function() size_changed = true end)
|
2719
mpv/scripts/webm.lua
Normal file
2719
mpv/scripts/webm.lua
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user