added isPause state for video player