Check if VLC is closed (from LUA intf)

Discuss your Lua playlist, album art and interface scripts.
Etoh
Blank Cone
Blank Cone
Posts: 60
Joined: 12 Jan 2013 16:33

Check if VLC is closed (from LUA intf)

Postby Etoh » 02 Jun 2014 02:42

Hey all,

To check whether VLC 2.x has been closed my LUA interface code currently looks like this:

Code: Select all

if vlc.volume.get() == -256 then running = false end
Is this approach acceptable? Is there a better way to check from a LUA interface script whether VLC 2.x has been closed?

When VLC closes it does not close LUA interface scripts that are still running. I want to keep track of whether VLC is running so I can exit my interface's main loop when VLC is no longer running. In effect, I want to replicate the old 'vlc.misc.should_die()'.

Thanks :)

Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: Bing [Bot] and 16 guests