Search code examples
wpfxamarinxamarin.formsvlclibvlc

Xamarin.Forms WPF won't load VideoView


I try to recreate the Xamarin.Forms libvlcsharp Sample for myself.

On Android an iOS it works perfectly fine, but when i try to use the Xamarin.Forms WPF Implementation it won't even load the ContentPage any more.

As soon as i remove the VideoView from the ContentPage and replace it with an Label or something like that it works.

In this case it works:

<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
         xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
         xmlns:local="clr-namespace:AwsomeSample"
         xmlns:shared="clr-namespace:LibVLCSharp.Forms.Shared;assembly=LibVLCSharp.Forms"
         x:Class="AwsomeSample.MainPage">
         <!--<shared:VideoView x:Name="videoView" HorizontalOptions="Center" VerticalOptions="Center"/>-->
         <Label Text="Bool11"/>
</ContentPage>

enter image description here

And here not:

<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
         xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
         xmlns:local="clr-namespace:AwsomeSample"
         xmlns:shared="clr-namespace:LibVLCSharp.Forms.Shared;assembly=LibVLCSharp.Forms"
         x:Class="AwsomeSample.MainPage">
         <shared:VideoView x:Name="videoView" HorizontalOptions="Center" VerticalOptions="Center"/>
         <!--<Label Text="Bool11"/>-->
</ContentPage>

enter image description here

Hope my english isn't that bad. ^^


Solution

  • From https://code.videolan.org/videolan/LibVLCSharp/issues/38, this has been fixed:

    Try with (at least) https://www.nuget.org/packages/LibVLCSharp.WPF/0.0.1-alpha2 and https://www.nuget.org/packages/LibVLCSharp.Forms.WPF/0.0.1-alpha1

    I believe you can close this question now.