我libvlcsharp
用来播放视频,在 iOS 中显示控件,但在 android 中有白框而不是控件。请帮助
这是 XAML
<vlc:MediaPlayerElement x:Name="myvideo" HorizontalOptions="StartAndExpand" VerticalOptions="StartAndExpand" HeightRequest="200"/>
代码背后
LibVLC _libVLC;
public TestPage()
{
InitializeComponent();
Core.Initialize();
_libVLC = new LibVLC();
var media = new Media(_libVLC, "http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4", FromType.FromLocation);
myvideo.MediaPlayer = new MediaPlayer(media) { EnableHardwareDecoding = true};
myvideo.MediaPlayer.Play();
}