A simple view for displaying background video in Xamarin.Forms (iOS and Android)
1.- Add Xamarin.Forms.BackgroundVideoView package to each project.
2.- Call Abstractions.Init() on each platform.
<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"
xmlns:controls="clr-namespace:Xamarin.Forms.BackgroundVideoView;assembly=Xamarin.Forms.BackgroundVideoView"
mc:Ignorable="d"
x:Class="Xamarin.Forms.BackgroundVideoView.MainPage">
<controls:BackgroundVideoView Source="Orchestra.mp4" Loop="True"
HorizontalOptions="Fill" VerticalOptions="Fill" >
<controls:BackgroundVideoView.ViewContent>
<!--YOUR CONTENT-->
</controls:BackgroundVideoView.ViewContent>
</controls:BackgroundVideoView>
</ContentPage>
Your caffeine helps me a lot ✨
Happy coding! ✨ 🐫 💥