How to get notified when buttons are clicked?
Posted: 18 Feb 2012 11:56
Any idea how an extension can get notified when a button in the main vlc windows is clicked? For example, the pause button. Thanks.
Discussion and support for VLC media player and friends
http://forum.videolan.org/
Please, Jean-Baptiste, could you reveal the secret of this? Just some brief example, please.But you can attach to events and variable callbacks.
Code: Select all
function descriptor()
return {
...
capabilities = { "input-listener", "meta-listener", "playing-listener" }
}
end
function playing_changed(stat)
vlc.osd.message("Status:" .. tostring(stat))
end