Exemplo n.º 1
0
        private void TrailerExecute()
        {
            var t = "plugin://plugin.video.youtube/?action=play_video&videoid=";

            if (Trailer != null && Trailer.Contains(t))
            {
                _appContext.PlatformServices.Launcher.LaunchUriAsync(new Uri("http://www.youtube.com/watch?hd=1&v=" + Trailer.Replace(t, "")));
            }
            else
            {
                _appContext.PlatformServices.Launcher.LaunchUriAsync(new Uri("http://www.youtube.com/results?search_query=" + Uri.EscapeDataString(Label)));
            }
        }