Skip to content

Instantly share code, notes, and snippets.

@moltony
Created November 10, 2024 15:49
Show Gist options
  • Select an option

  • Save moltony/dc67afa0714c3bffceeb0fff916df98d to your computer and use it in GitHub Desktop.

Select an option

Save moltony/dc67afa0714c3bffceeb0fff916df98d to your computer and use it in GitHub Desktop.
mpv pause text
local ov = mp.create_osd_overlay('ass-events')
ov.data = "{\\fs72}{\\an5}一時停止!!" -- You can literally put whatever pause text you want in here.
-- {\\fs72} sets font size to 72.
-- {\\an5} puts the text in the center of the screen.
mp.observe_property('pause', 'bool', function(_, paused)
if paused then ov:update()
else ov:remove() end
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment