can Lua access value defined in 3rdparty module?
Posted: 26 Aug 2013 02:53
Hi.
So, if my plugin has:
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:
VLC, view, "foo" =>
Sad. Is there any way to access non in-tree variables in such a way? vlc.var.get seems to lack some good docs..
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")
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
Code: Select all
[0x7f6ebc120258] lua generic: foo!
[0x7f6ebc120258] lua generic error: Could not activate extension!