Add utility function exportFunc and export to window.vlcExports.
Export player events with utility func
Ah, logics