Trigger lua with vlc commands?

Discuss your Lua playlist, album art and interface scripts.
Angrod90
New Cone
New Cone
Posts: 5
Joined: 16 Nov 2015 11:24

Trigger lua with vlc commands?

Postby Angrod90 » 02 May 2016 13:41

I don't know if this is possible, but I have an application with Python using the vlc bindings, it works fine...ish. Whenever I use the python set_time(ms) command, VLC transalate it in set_time(s) and sometimes there are a few frames lost. I downloaded the Jump to time extension an it works wonderfully when I change the miliseconds, so is there a way for lua to catch my set_time(ms) order from python and use the

function click_Set_time()
local input=vlc.object.input()
if input then vlc.var.set(input,"time",String2time(textinput_time:get_text())) end
end

from lua?
I've been reading for a while and if it's posible I don't know how to do it, so any help would be appreciated.
If there is no solution I'll guess I'll have to trash my work and redo it using mplayer which has ms precision...

Thanks!

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: Trigger lua with vlc commands?

Postby mederi » 17 May 2016 13:47

Perhaps you will find a way if you check available interface scripts.


Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 12 guests