@Override
public void callback(libvlc_event_t event, Pointer userData) {
Logger.trace("callback(event={},userData={})", event, userData);
// Create a new media player event for the native event - due to internal implementation
// details the event listener list is never empty so it is redundant to check that here
MediaPlayerEvent mediaPlayerEvent = eventFactory.createEvent(event, eventMask);
if(event != null) {
raiseEvent(mediaPlayerEvent);
}
}