public void MediaControl() { if (!pauseFlag) { videoUtil.PauseVideo(); pauseFlag = true; PlayImage = "Image/Play.png"; } else { videoUtil.ResumeVideo(); pauseFlag = false; PlayImage = "Image/Pause.png"; } }