videoplayer: use single global window instead of creating a new one for each file