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:

  1. load settings file @ vlc launch
  2. need triggered player @ specific times of video stream
  3. get file name of source video stream
  4. open file (script) same name different extension
  5. open udp socket
  6. compose message
  7. send message
  8. 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

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

c++ - End of file on pipe magic during open -