Simply, I need this value to be continously updated automatically from inside lua (without the help of any 3rd party software) as the video time position changes:
One of the solutions I've tried is to use a while loop:
Code: Select all
function Get_time()
while true do
local input=vlc.object.input()
if input then text_time:set_text(Time2string(vlc.var.get(input,"time"))) end
end
end
I need a compatible solution with the latest version of VLC player.