public void OnInitializationSuccess(IYouTubePlayerProvider p0, IYouTubePlayer player, bool p2) { try { player.LoadVideo(idvideo); player.SetFullscreen(true); player.SetShowFullscreenButton(false); } catch (Exception) { throw; } }
public void OnInitializationSuccess(IYouTubePlayerProvider p0, IYouTubePlayer player, bool p2) { try { YoutubePlayer = player; YoutubePlayer.SetPlayerStyle(YouTubePlayerPlayerStyle.Default); YoutubePlayer.LoadVideo(VideoPlayid); } catch (Exception e) { Console.WriteLine(e); } }
public void OnInitializationSuccess(IYouTubePlayerProvider p0, IYouTubePlayer player, bool wasRestored) { try { if (YoutubePlayer == null) { YoutubePlayer = player; } if (!wasRestored) { YoutubePlayer.LoadVideo(PostObject.PostYoutube); //YoutubePlayer.AddFullscreenControlFlag(YouTubePlayer.FullscreenFlagControlOrientation | YouTubePlayer.FullscreenFlagControlSystemUi | YouTubePlayer.FullscreenFlagCustomLayout); } } catch (Exception e) { Methods.DisplayReportResultTrack(e); } }
public void OnInitializationSuccess(IYouTubePlayerProvider p0, IYouTubePlayer player, bool wasRestored) { try { YoutubePlayer = YoutubePlayer switch { null => player, _ => YoutubePlayer }; switch (wasRestored) { case false: YoutubePlayer.LoadVideo(VideoIdYoutube); //YoutubePlayer.AddFullscreenControlFlag(YouTubePlayer.FullscreenFlagControlOrientation | YouTubePlayer.FullscreenFlagControlSystemUi | YouTubePlayer.FullscreenFlagCustomLayout); break; } } catch (Exception e) { Methods.DisplayReportResultTrack(e); } }
public void OnInitializationSuccess(IYouTubePlayerProvider p0, IYouTubePlayer yPlayer, bool p2) { yPlayer.LoadVideo(vedioId, 0); }
public void PlayNewVideo(string idVid) { tubePlayer.LoadVideo(idVid, 0); }