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(); } }
public void OnInitializationSuccess(IYouTubePlayerProvider p0, IYouTubePlayer player, bool wasRestored) { if (!wasRestored) { player.CueVideo(youtubeItem.VideoId); player.Play(); } }
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"); } }
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"); } }
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); } } }
/// <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(); } }
public void OnInitializationSuccess(IYouTubePlayerProvider p0, IYouTubePlayer player, bool p2) { player.CueVideo(VideoId); player1 = player; }