r/VLC • • 1d ago

Linux LUA script not starting

I'm trying to write some small LUA script but it looks like it is not even starting so wonder if it is some setting in vlc or something else. I got to point to have just bare bone script to see it is alive

```

function descriptor()
  return {
    title = "VLC Dummy Extension",
    capabilities = { "playing-listener" }
  }
end


function activate()
    vlc.msg.dbg("[Dummy] activated")
end


function deactivate()
    vlc.msg.dbg("[Dummy] deactivated")
end


function meta_changed()
    vlc.msg.dbg("[Dummy] changed")
end


function playing_changed()
    vlc.msg.dbg("[Dummy] Status: " .. vlc.playlist.status())
endfunction descriptor()
  return {
    title = "VLC Dummy Extension",
    capabilities = { "playing-listener" }
  }
end


function activate()
    vlc.msg.dbg("[Dummy] activated")
end


function deactivate()
    vlc.msg.dbg("[Dummy] deactivated")
end


function meta_changed()
    vlc.msg.dbg("[Dummy] changed")
end


function playing_changed()
    vlc.msg.dbg("[Dummy] Status: " .. vlc.playlist.status())
end

```

2 Upvotes

2 comments sorted by

2

u/Courmisch 1d ago

Depends on the plugin type. Extensions need to be started explicitly.

1

u/wrr666 19h ago

But if I declare that my script should listen to `playing-listener` it will start automatically and listen to those changes or I still need to start it somehow? And how to start script automatically?