c++ - How to write VLC plugin that can interact with the operating system -
i need find out if possible , how (i not care language c/c++, lua, python ...) make vlc plugin purpose called vlc player , @ specific times of video stream action.
the action need open udp socket , send data read file comes along video played.
i need make subtitle reader on it's best can initialize udp socket , send read data server.
i not sure creation of udp socket possible in lua maybe better option binary c/c++ plugin can't find example.
in general @ best requirements are:
- load settings file @ vlc launch
- need triggered player @ specific times of video stream
- get file name of source video stream
- open file (script) same name different extension
- open udp socket
- compose message
- send message
- continue loop until end of video stream
any information, example or site, link appreciated.
looks like create control interface module. written in c/c++ within vlc context , in turn need (re-) compiled each platform target. have @ audioscrobbler module see how interact current input stream , how retrieve metadata such file name, etc. since modules in c, opening sockets , transmitting data not big deal.
the biggest caveat need complex compilation environment if target windows platform. have @ compilation howto's on wiki http://wiki.videolan.org/compile_vlc/ since try prior doing coding.
thinking it, can achieve featured extension in lua, easier develop (since don't need compile vlc , cross-platform). opening udp sockets might problematic though. tcp work. page nice starting point: http://www.coderholic.com/extending-vlc-with-lua/
Comments
Post a Comment