Fix the logic for pause and play video states when doing and overlay.