[Extension] Pause @ start
Posted: 28 Jun 2013 15:25
A simple Lua extension script for following feature request: viewtopic.php?f=7&t=111913
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