You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iot/labs/Demo/Demo/OnvifPage.xaml

35 lines
3.2 KiB

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:shared="clr-namespace:LibVLCSharp.Forms.Shared;assembly=LibVLCSharp.Forms"
x:Class="Demo.OnvifPage">
<AbsoluteLayout>
<shared:VideoView x:Name="videoView" AbsoluteLayout.LayoutFlags="All" AbsoluteLayout.LayoutBounds="0,0,1,1" />
<ImageButton BackgroundColor="Transparent" AbsoluteLayout.LayoutFlags="PositionProportional" AbsoluteLayout.LayoutBounds="0.01,0.01,48,48" x:Name="back" Clicked="Back_Clicked" />
<AbsoluteLayout BackgroundColor="Transparent" AbsoluteLayout.LayoutFlags="PositionProportional" AbsoluteLayout.LayoutBounds="0.99,0.01,148,48">
<ImageButton BackgroundColor="Transparent" AbsoluteLayout.LayoutFlags="PositionProportional" AbsoluteLayout.LayoutBounds="0,0,48,48" x:Name="mute" Clicked="Mute_Clicked" />
<Slider BackgroundColor="Transparent" AbsoluteLayout.LayoutFlags="PositionProportional" AbsoluteLayout.LayoutBounds="1,0,100,48" Minimum="0" Maximum="100" ThumbColor="LightBlue" x:Name="volume" ValueChanged="Volume_ValueChanged" />
</AbsoluteLayout>
<Grid AbsoluteLayout.LayoutBounds=".5,0.99,250,150" AbsoluteLayout.LayoutFlags="PositionProportional" RowSpacing="0" ColumnSpacing="0">
<Grid.RowDefinitions>
<RowDefinition Height="50" />
<RowDefinition Height="50" />
<RowDefinition Height="50" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="50" />
<ColumnDefinition Width="50" />
<ColumnDefinition Width="50" />
<ColumnDefinition Width="50" />
<ColumnDefinition Width="50" />
</Grid.ColumnDefinitions>
<ImageButton Grid.Row="0" Grid.Column="2" Opacity="0.5" BackgroundColor="Transparent" x:Name="up" Pressed="Control_Pressed" Released="Control_Released" ClassId="26up" />
<ImageButton Grid.Row="1" Grid.Column="1" Opacity="0.5" BackgroundColor="Transparent" x:Name="left" Pressed="Control_Pressed" Released="Control_Released" ClassId="24left" />
<ImageButton Grid.Row="1" Grid.Column="2" Opacity="0.5" BackgroundColor="Transparent" x:Name="stop" Pressed="Control_Pressed" Released="Control_Released" ClassId="23stop" />
<ImageButton Grid.Row="1" Grid.Column="3" Opacity="0.5" BackgroundColor="Transparent" x:Name="right" Pressed="Control_Pressed" Released="Control_Released" ClassId="25right" />
<ImageButton Grid.Row="2" Grid.Column="2" Opacity="0.5" BackgroundColor="Transparent" x:Name="down" Pressed="Control_Pressed" Released="Control_Released" ClassId="27down" />
<ImageButton Grid.Row="2" Grid.Column="0" Opacity="0.5" BackgroundColor="Transparent" x:Name="zoomin" Pressed="Control_Pressed" Released="Control_Released" ClassId="21zoomin" />
<ImageButton Grid.Row="2" Grid.Column="4" Opacity="0.5" BackgroundColor="Transparent" x:Name="zoomout" Pressed="Control_Pressed" Released="Control_Released" ClassId="22zoomout" />
</Grid>
</AbsoluteLayout>
</ContentPage>