arqueror / Xamarin.Forms.BackgroundVideoView

A simple view for displaying background video in Xamarin.Forms (iOS and Android)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Xamarin.Forms.BackgroundVideoView

A simple view for displaying background video in Xamarin.Forms (iOS and Android)

Installation

1.- NuGet Add Xamarin.Forms.BackgroundVideoView package to each project.

2.- Call Abstractions.Init() on each platform.

How it looks

Alt Text

Usage

  <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>

Did you like it?

Buy Me A Coffee

Your caffeine helps me a lot ✨

Happy coding! ✨ 🐫 💥

About

A simple view for displaying background video in Xamarin.Forms (iOS and Android)

License:MIT License


Languages

Language:C# 100.0%