private void registerEventListener() {
Logger.debug("registerEventListener()");
callback = new EventCallback();
libvlc_event_e lastKnownEvent = lastKnownEvent();
for(libvlc_event_e event : libvlc_event_e.values()) {
if(event.intValue() >= libvlc_event_e.libvlc_MediaPlayerMediaChanged.intValue() && event.intValue() <= lastKnownEvent.intValue()) {
Logger.debug("event={}", event);
int result = libvlc.libvlc_event_attach(mediaPlayerEventManager, event.intValue(), callback, null);
Logger.debug("result={}", result);
}
}