Page 1 of 1

Customize RemoteControl interface

Posted: 24 Jan 2016 09:26
by epsi1on
Hi all,
I need to customize the remote control interface so that i be able to get the full file name of currently playing file.
There is a function named get_title in RC which get the title of currently playing file, but i need the full file name.
My opinion was to change the below file:
C:\Program Files (x86)\VideoLAN\VLC\lua\intf\cli.luac
and place the extra functions i need into it and recompile to gain the .luac file. But it did not take effect! even deleting this file does not make VLC to give error.
Can you please help on how i can add new function to RemoteControl interface of vlc?

Thanks

Re: Customize RemoteControl interface

Posted: 24 Jan 2016 10:28
by Etoh
1) Try saving the Lua file under a different name (newint.lua) then running VLC using the command line option --extraintf=luaintf --lua-intf=newint
2) Make sure that if you have VLC installed to more than one location (e.g. 32-bit and 64-bit) that you are using the correct folder/executable.

Re: Customize RemoteControl interface

Posted: 24 Jan 2016 11:12
by epsi1on
Thank,
Your solution works fine. This is how i'm running it now:

--intf qt --extraintf=luaintf --lua-intf=newint

But how can i make newint interface it to listen on a TCP port? (like RC)
Currently i'm making RC to listen on port 1234 like this:
--extraintf rc --rc-host localhost:1234

Re: Customize RemoteControl interface

Posted: 24 Jan 2016 15:59
by Etoh
But how can i make newint interface it to listen on a TCP port? (like RC)
Currently i'm making RC to listen on port 1234 like this:
--extraintf rc --rc-host localhost:1234
Try something like --lua-config "newint={host='localhost:1234'}"

The concept is explained at https://www.videolan.org/developers/vlc ... README.txt and the specific usage is explained in the description at the top of cli.lua