Vimeo在Xamarin.android中未显示全屏选项

时间:2019-02-21 13:30:22

标签: xamarin.forms xamarin.android vimeo

在我的情况下,我在Xamarin.Forms中拥有了此共享代码,它在iOS平台中呈现良好,但是在android中

enter image description here

iOS平台

enter image description here

我的ContentPage

public class LocalHtml : ContentPage
    {
        public LocalHtml()
        {
            var browser = new CookieWebView();

            var htmlSource = new HtmlWebViewSource();

            htmlSource.Html = @"<html><body>
<h1>Xamarin.Forms</h1>

<iframe src=""https://player.vimeo.com/video/236787722"" style=""background-color: #000000"" width=""360"" height=""200"" frameborder=""0"" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>

</body>
</html>";

            browser.Source = htmlSource;
            Content = browser;
        }
    }

0 个答案:

没有答案