【发布时间】:2020-04-11 12:10:53
【问题描述】:
我正在使用网络视图在我的应用中加载 YouTube 视频。但是全屏选项不起作用。 如何实现全屏。
我的代码
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
x:Class="Player.MainPage">
<StackLayout>
<Label Text="Hello"/>
<WebView x:Name="browser" Source="https://www.youtube.com/watch?v=fDrTbLXHKu8" HeightRequest="500"/>
</StackLayout>
</ContentPage>
youtube 全屏不工作。
【问题讨论】:
-
您是否尝试过添加全屏标志? stackoverflow.com/a/53337763/11104068
-
全屏模式需要自己实现,看看this sample可能会有帮助。
标签: c# android xamarin xamarin.forms xamarin.android