C# 以Xamarin形式嵌入单个Youtube视频,但不包括Youtube列表

C# 以Xamarin形式嵌入单个Youtube视频,但不包括Youtube列表,c#,xamarin,xamarin.forms,youtube-api,C#,Xamarin,Xamarin.forms,Youtube Api,我想将Youtube视频集成到Xamarin.forms应用程序中 目前,我在谷歌上找到了以下链接: 但他们只处理Youtube列表,而不处理一个Youtube视频 我想要一个不是在WebView中播放的视频 如何解决这个问题?HtmlWebViewSource personHtmlSource=new HtmlWebViewSource(); HtmlWebViewSource personHtmlSource = new HtmlWebViewSource(); personHtmlSo

我想将Youtube视频集成到
Xamarin.forms
应用程序中

目前,我在谷歌上找到了以下链接:

但他们只处理Youtube列表,而不处理一个Youtube视频

我想要一个不是在
WebView中播放的视频

如何解决这个问题?

HtmlWebViewSource personHtmlSource=new HtmlWebViewSource();
HtmlWebViewSource personHtmlSource = new HtmlWebViewSource();
personHtmlSource.SetBinding(HtmlWebViewSource.HtmlProperty, "HTMLDesc");
personHtmlSource.Html = @"<html><body>  <div style=' position: relative; padding-bottom: 56.25%; padding-top: 25px;'> <iframe style='position: absolute; top: 0; left: 0; width: 100%; height: 100%;'  src='https://www.youtube.com/embed/bVdfj7HXuXE' frameborder='0' allowfullscreen></iframe></div> </body></html>";
var browser = new WebView();
browser.Source = personHtmlSource;
Content = browser;
personHtmlSource.SetBinding(HtmlWebViewSource.HtmlProperty,“HTMLDesc”); personHtmlSource.Html=@; var browser=new WebView(); browser.Source=personHtmlSource; 内容=浏览器;
就这么做

<WebView VerticalOptions="FillAndExpand"
        HorizontalOptions="FillAndExpand"
        Source="https://www.youtube.com/embed/8azMAqsuHs0"
        WidthRequest="500"
        HeightRequest="500"
        IsVisible="true"/>

请记住,设置宽度和高度是必要的,否则它将不会显示


最诚挚的问候

@user1,有什么线索吗?我会看一下,或者他们两个似乎都允许你从youtube流媒体。虽然第二个链接的价格是50美元。但是第一个是免费的我已经看到了第二个链接,我想要免费的,无论如何让我看看第一个感谢第一个不支持youtube,如果你知道它如何与youtube一起工作,请帮助你找到一个好的解决方案吗?