Register a callback for new data available on a socket

Discuss your Lua playlist, album art and interface scripts.
dhruvbird
New Cone
New Cone
Posts: 2
Joined: 03 May 2013 09:12

Register a callback for new data available on a socket

Postby dhruvbird » 03 May 2013 09:26

Hello!

So, I'm trying to create a plugin that listens for data on a tcp socket and once it has some data, displays that on the OSD. However, I need to wait for data on the socket using the poll() method, and because of that, VLC thinks that the plugin has crashed. Please can you suggest a better way to do this?

Here is the current code: https://github.com/pathsny/vlc_simulwat ... lwatch.lua

Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 10 guests