public override void OnInitializationSuccess(IYouTubePlayerProvider provider, IYouTubePlayer player, bool wasRestored)
        {
            this.player = player;
            player.SetPlaylistEventListener(playlistEventListener);
            player.SetPlayerStateChangeListener(playerStateChangeListener);
            player.SetPlaybackEventListener(playbackEventListener);

            if (!wasRestored)
            {
                PlayVideoAtSelection();
            }
            SetControlsEnabled(true);
        }
        public override void OnInitializationSuccess(IYouTubePlayerProvider provider, IYouTubePlayer player, bool wasRestored)
        {
            Player = player;
            Player.SetPlaylistEventListener(playlistEventListener);
            Player.SetPlayerStateChangeListener(playerStateChangeListener);
            Player.SetPlaybackEventListener(playbackEventListener);

            if (!wasRestored) {
                PlayVideoAtSelection();
            }
            SetControlsEnabled(true);
        }