input.item:uri() isn't suitable ?Hello again !
To make easier the use of my script, I would need to get the path of the file which is currently read by VLC (maybe I missed this possibility). In order that the file subtitle can be automatically identified as long as it has the same name (except the extension) and is in the same directory as the movie file.
You can use the send and recv functions to read and write to a socket.Hi,
I'm trying to connect to the network in order to search for and connect to UPnP devices. (A long standing wish from many users).
In the source I found a undocumented connect_tcp function in the net module. I succesfully used that to connect to a device and send a message, but how do I receive the response?
You are right. The lua binding miss this function. Please fill a feature request on the trac about it (I might forget).But to search for UPnP devices I need to send and receive UDP, not TCP. So some additions to the net module would be welcome. (Or someone to explain how to send/receive TCP and UDP with the currently available functions.)
I thought the addition of Lua to VLC was a great idea, because you can add/change things without the need to recompile. This should lower the bar for people (like me) to get involved with VLC-development. Even non-C experts can understand most of the Lua-scripts.
You are absolutely right, I missed it ! Thanks.input.item:uri() isn't suitable ?
OK, i'll try tweaking my code for receiving.You can use the send and recv functions to read and write to a socket.
You are right. The lua binding miss this function. Please fill a feature request on the trac about it (I might forget).
Code: Select all
input = vlc.object.input()
yourTime = vlc.var.get(input, 'time')
vlc.var.set(input, 'time', yourTime)
I totally agree with these ones.- hotkeys, keymapping (very importend for my extension )
- open file dialog
- radio button
Return to “Scripting VLC in lua”
Users browsing this forum: No registered users and 17 guests