Complete `togglePause()` method in YoutubePlayer.