I need to find out if it is possible and how (I do not care about the language C/C++, Lua, Python ...) to make a VLC plugin which purpose will be to be called by the VLC player and at specific times of the video stream will do some action.
The action that I need to do is to open a UDP socket and send some data read from a file that comes along with the video currently played.
I need to make something like a subtitle reader that on it's best can initialize UDP socket and send the read data to the server.
I am not sure that creation of UDP socket is possible in Lua maybe the better option will be a binary C/C++ plugin but can't find any example.
In general at the best my requirements are:
- Load settings file at VLC launch
- Need to be triggered by the player at specific times of the video stream
- Get the file name of the source video stream
- Open the file (script) with the same name but different extension
- Open a UDP socket
- Compose the message
- Send the message
- Continue the loop until the end of the video stream
Any information, example or site, link is greatly appreciated.