public override void OnInitializationSuccess(IYouTubePlayerProvider provider, IYouTubePlayer player, bool wasRestored)
        {
            player.AddFullscreenControlFlag(YouTubePlayer.FullscreenFlagCustomLayout);
            player.SetOnFullscreenListener(this);

            if (!wasRestored) {
                player.CueVideo("9c6W4CCU9M4");
            }
        }
        public override void OnInitializationSuccess(IYouTubePlayerProvider provider, IYouTubePlayer player, bool wasRestored)
        {
            player.AddFullscreenControlFlag(YouTubePlayer.FullscreenFlagCustomLayout);
            player.SetOnFullscreenListener(this);

            if (!wasRestored)
            {
                player.CueVideo("9c6W4CCU9M4");
            }
        }
 void IYouTubePlayerOnInitializedListener.OnInitializationSuccess(IYouTubePlayerProvider provider, IYouTubePlayer player, bool restored)
 {
     this.player = player;
     player.AddFullscreenControlFlag(YouTubePlayer.FullscreenFlagCustomLayout);
     player.SetOnFullscreenListener((VideoListDemoActivity)Activity);
     if (!restored && videoId != null)
     {
         player.CueVideo(videoId);
     }
 }
 public override void OnInitializationSuccess(IYouTubePlayerProvider provider, IYouTubePlayer player, bool wasRestored)
 {
     this.player = player;
     SetControlsEnabled();
     // Specify that we want to handle fullscreen behavior ourselves.
     player.AddFullscreenControlFlag(YouTubePlayer.FullscreenFlagCustomLayout);
     player.SetOnFullscreenListener(this);
     if (!wasRestored) {
         player.CueVideo("avP5d16wEp0");
     }
 }
Example #5
0
 public override void OnInitializationSuccess(IYouTubePlayerProvider provider, IYouTubePlayer player, bool wasRestored)
 {
     this.player = player;
     SetControlsEnabled();
     // Specify that we want to handle fullscreen behavior ourselves.
     player.AddFullscreenControlFlag(YouTubePlayer.FullscreenFlagCustomLayout);
     player.SetOnFullscreenListener(this);
     if (!wasRestored)
     {
         player.CueVideo("avP5d16wEp0");
     }
 }