-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMainPage.xaml
More file actions
74 lines (60 loc) · 2.44 KB
/
Copy pathMainPage.xaml
File metadata and controls
74 lines (60 loc) · 2.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
x:Class="FFmpegKit.Android.Example.MainPage">
<ScrollView>
<VerticalStackLayout
Padding="20"
Spacing="16">
<Label
Text="FFmpegKit.Android Example"
Style="{StaticResource Headline}"
SemanticProperties.HeadingLevel="Level1" />
<Label
Text="Pick a conversion, run it with the FFmpegKit.Net.Full.Android NuGet package, and compare the result to the original."
Style="{StaticResource SubHeadline}" />
<Label Text="Conversion type" FontAttributes="Bold" />
<Picker x:Name="ConversionPicker" Title="Select a conversion" />
<Button
x:Name="ConvertBtn"
Text="Convert sample video"
Clicked="OnConvertClicked"
HorizontalOptions="Fill" />
<Button
x:Name="CancelBtn"
Text="Cancel"
Clicked="OnCancelClicked"
IsEnabled="False"
HorizontalOptions="Fill" />
<ActivityIndicator
x:Name="Spinner"
IsRunning="False"
IsVisible="False" />
<ProgressBar
x:Name="ConversionProgress"
Progress="0"
IsVisible="False" />
<Label
x:Name="ProgressLabel"
IsVisible="False"
FontSize="12" />
<Label
x:Name="StatusLabel"
Text="Tap the button to run an FFmpeg conversion."
LineBreakMode="WordWrap" />
<Label Text="Before" FontAttributes="Bold" />
<toolkit:MediaElement
x:Name="BeforePlayer"
HeightRequest="220"
ShouldAutoPlay="False"
ShouldShowPlaybackControls="True" />
<Label Text="After" FontAttributes="Bold" />
<toolkit:MediaElement
x:Name="AfterPlayer"
HeightRequest="220"
ShouldAutoPlay="False"
ShouldShowPlaybackControls="True" />
</VerticalStackLayout>
</ScrollView>
</ContentPage>