can Lua access value defined in 3rdparty module?

Discuss your Lua playlist, album art and interface scripts.
joeklow
New Cone
New Cone
Posts: 9
Joined: 10 Aug 2013 23:00

can Lua access value defined in 3rdparty module?

Postby joeklow » 26 Aug 2013 02:53

Hi.

So, if my plugin has:

Code: Select all

set_shortname( "some" ) set_category( CAT_AUDIO ) set_subcategory( SUBCAT_AUDIO_AFILTER ) add_string("some-val", "nothing, really", "some value")
And bare expectations were: if all vars are exposed via non-hardcoded interface, and, referring to thread https://forum.videolan.org/viewtopic.php?f=29&t=112089, it's possible to do things like this.vlc.video.marquee.refresh = 100 (in JS/NPAPI interface?), then can I do..

I've tried following code to reach for plugin's var:

Code: Select all

function descriptor() return { title = "foo" ; version = "0" ; author = "" ; url = ""; shortdesc = ""; description = ""; capabilities = { "input-listener", "meta-listener" } } end function activate() vlc.msg.info("foo!") vlc.msg.info(vlc.audio.some.some-val) end function deactivate() end
VLC, view, "foo" =>

Code: Select all

[0x7f6ebc120258] lua generic: foo! [0x7f6ebc120258] lua generic error: Could not activate extension!
Sad. Is there any way to access non in-tree variables in such a way? vlc.var.get seems to lack some good docs..

Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 14 guests