I\'m having trouble attaching an event handler to tell when a song has finished playing when using the VLC Python bindings. The event_attach function is complaining about th
Found it, VLC.py includes a small decorator ctypes function for wrapping callbacks:
callbackmethod=ctypes.CFUNCTYPE(None, Event, ctypes.c_void_p)
To use:
@callbackmethod def SongFinished(self, data): print data
.event_attach(vlc.EventType.MediaPlayerEndReached, SongFinished, 1)