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 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"); } }
public void OnInitializationSuccess(IYouTubePlayerProvider provider, IYouTubePlayer player, bool wasRestored) { if (!wasRestored && player != null) { YPlayer = player; YPlayer.SetFullscreen(false); YPlayer.SetPlayerStyle(YouTubePlayerPlayerStyle.Chromeless); // style seeker.ProgressChanged += Seeker_ProgressChanged; YPlayer.SetPlaybackEventListener(this); YPlayer.SetOnFullscreenListener(this); YPlayer.SetPlayerStateChangeListener(this); PlayVideo(element.VideoSource); } }