process application events before pausing a video element (it prevent it to flicker)