Skip to content

Commit cf393b1

Browse files
committed
osc.lua: add indicator for buffering/loading
1 parent 9422a6d commit cf393b1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

player/lua/osc.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ local icons = {
146146
next = "\238\132\129", -- E101
147147
pause = "\238\128\130", -- E002
148148
play = "\238\132\129", -- E101
149+
clock = "\238\128\134", -- E006
149150
play_backward = "\238\132\144", -- E110
150151
skip_backward = "\238\128\132", -- E004
151152
skip_forward = "\238\128\133", -- E005
@@ -1906,6 +1907,10 @@ local function osc_init()
19061907
ne = new_element("play_pause", "button")
19071908

19081909
ne.content = function ()
1910+
if mp.get_property_bool("paused-for-cache") ~= false then
1911+
return icons.clock
1912+
end
1913+
19091914
if not mp.get_property_native("pause") then
19101915
return icons.pause
19111916
end

0 commit comments

Comments
 (0)