Code: Select all
-- pause@start.lua -- VLC Extension
function descriptor()
return {
title = "Pause @ start",
version = "1.0",
capabilities = {"input-listener"}
}
end
function activate()
end
function deactivate()
end
function input_changed()
state = vlc.var.get(vlc.object.input(), "state")
-- vlc.msg.info("["..descriptor().title.."] Input state = "..state)
if state~=4 then
vlc.playlist.pause()
end
end
function meta_changed()
end