handling the player events when the user uses the video player directly.