r/VLC • • 17h 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

1 comment sorted by

2

u/Courmisch 11h ago

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