public override void OnInitializationSuccess(IYouTubePlayerProvider provider, IYouTubePlayer player, bool wasRestored)
 {
     if (!wasRestored)
     {
         player.CueVideo("wKJ9KzGQq0w");
     }
 }
Пример #2
0
 public override void OnInitializationSuccess(IYouTubePlayerProvider provider, IYouTubePlayer player, bool wasRestored)
 {
     if (!wasRestored)
     {
         player.CueVideo("wKJ9KzGQq0w");
     }
 }
 public void OnInitializationSuccess(IYouTubePlayerProvider provider, IYouTubePlayer player, bool wasRestored)
 {
     if (!wasRestored)
     {
         player.CueVideo("Uh_rSDdzubg");
         player.Play();
     }
 }
Пример #4
0
 public void OnInitializationSuccess(IYouTubePlayerProvider p0, IYouTubePlayer player, bool wasRestored)
 {
     if (!wasRestored)
     {
         player.CueVideo(youtubeItem.VideoId);
         player.Play();
     }
 }
Пример #5
0
 public override void OnInitializationSuccess(IYouTubePlayerProvider provider, IYouTubePlayer player, bool wasRestored)
 {
     if (!wasRestored)
     {
         player.CueVideo (_videoYouTubeId);
         SharedPreferencesHelper.Instance.AddVideoToSharedPreferences (_videoKey, SharedPreferenceType.Watched);
     }
 }
        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 void OnInitializationSuccess(IYouTubePlayerProvider playerProvider, IYouTubePlayer player, bool wasRestored)
        {
            _player = player;
            _player.SetOnFullscreenListener (this);

            if (!wasRestored)
            {
                player.CueVideo (_videoId);
            }
        }
 public void SetVideoId(string videoId)
 {
     if (videoId != null && videoId != this.videoId)
     {
         this.videoId = videoId;
         if (player != 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");
     }
 }
Пример #12
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");
     }
 }
        void IYouTubeThumbnailLoaderOnThumbnailLoadedListener.OnThumbnailLoaded(YouTubeThumbnailView thumbnail, string videoId)
        {
            nextThumbnailLoaded = true;

            if (activityResumed)
            {
                if (state == State.LoadingThumbnails)
                {
                    FlipNext();
                }
                else if (state == State.VideoFlippedOut)
                {
                    // load player with the video of the next thumbnail being flipped in
                    state = State.VideoLoading;
                    player.CueVideo(videoId);
                }
            }
        }
Пример #14
0
        /// <summary>
        ///     Play Video, todo support for video list
        /// </summary>
        /// <param name="videos"></param>
        public async void PlayVideo(params MediaItem[] videos)
        {
            if (YPlayer != null && videos != null)
            {
                Current = videos.FirstOrDefault();
                video_title.SetTextKeepState(Current.Title);
                //if (!Current.Handled)
                //    await Methods.MediaItemResolver(Current);
                if (!aborted)
                {
                    YPlayer.CueVideo(Current.Url);
                }
                await Task.Delay(TimeSpan.FromSeconds(1));

                if (!aborted)
                {
                    YPlayer.Play();
                }
                video_duration.SetTextKeepState(formatTime(YPlayer.DurationMillis));
                element.Reset();
            }
        }
Пример #15
0
 public void OnInitializationSuccess(IYouTubePlayerProvider p0, IYouTubePlayer player, bool p2)
 {
     player.CueVideo(VideoId);
     player1 = player;
 }