Page 1 of 1

Check if VLC is closed (from LUA intf)

Posted: 02 Jun 2014 02:42
by Etoh
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 :)