Customize RemoteControl interface

Discuss your Lua playlist, album art and interface scripts.
epsi1on
New Cone
New Cone
Posts: 2
Joined: 24 Jan 2016 09:20

Customize RemoteControl interface

Postby epsi1on » 24 Jan 2016 09:26

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

Etoh
Blank Cone
Blank Cone
Posts: 60
Joined: 12 Jan 2013 16:33

Re: Customize RemoteControl interface

Postby Etoh » 24 Jan 2016 10:28

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.

epsi1on
New Cone
New Cone
Posts: 2
Joined: 24 Jan 2016 09:20

Re: Customize RemoteControl interface

Postby epsi1on » 24 Jan 2016 11:12

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

Etoh
Blank Cone
Blank Cone
Posts: 60
Joined: 12 Jan 2013 16:33

Re: Customize RemoteControl interface

Postby Etoh » 24 Jan 2016 15:59

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


Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 1 guest