Add Windows desktop version
This commit is contained in:
74
windows/StreamPlayer.Desktop/Views/PlayerWindow.axaml
Normal file
74
windows/StreamPlayer.Desktop/Views/PlayerWindow.axaml
Normal file
@@ -0,0 +1,74 @@
|
||||
<Window xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:vlc="clr-namespace:LibVLCSharp.Avalonia;assembly=LibVLCSharp.Avalonia"
|
||||
x:Class="StreamPlayer.Desktop.Views.PlayerWindow"
|
||||
Width="960"
|
||||
Height="540"
|
||||
WindowStartupLocation="CenterOwner"
|
||||
Title="StreamPlayer - Reproductor">
|
||||
<Grid Background="Black">
|
||||
<vlc:VideoView x:Name="VideoView"
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Stretch"
|
||||
PointerPressed="OnVideoPointerPressed"/>
|
||||
|
||||
<Border x:Name="Overlay"
|
||||
Background="#80000000"
|
||||
Padding="20"
|
||||
IsVisible="True">
|
||||
<DockPanel>
|
||||
<TextBlock x:Name="ChannelNameText"
|
||||
Text="Canal"
|
||||
FontSize="20"
|
||||
Foreground="White"
|
||||
FontWeight="SemiBold"
|
||||
DockPanel.Dock="Left"/>
|
||||
<Button Content="Cerrar"
|
||||
HorizontalAlignment="Right"
|
||||
Click="OnCloseClicked"
|
||||
Margin="12,0,0,0"
|
||||
DockPanel.Dock="Right"/>
|
||||
</DockPanel>
|
||||
</Border>
|
||||
|
||||
<Border x:Name="LoadingOverlay"
|
||||
Background="#CC000000"
|
||||
IsVisible="True">
|
||||
<StackPanel HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Spacing="12">
|
||||
<ProgressBar IsIndeterminate="True" Width="280"/>
|
||||
<TextBlock x:Name="StatusText"
|
||||
Text="Preparando..."
|
||||
Foreground="White"
|
||||
FontSize="16"
|
||||
TextAlignment="Center"/>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
|
||||
<Border x:Name="ErrorOverlay"
|
||||
Background="#CC1E1E1E"
|
||||
IsVisible="False">
|
||||
<StackPanel HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Spacing="12">
|
||||
<TextBlock Text="Ocurrió un error"
|
||||
FontSize="20"
|
||||
Foreground="White"
|
||||
FontWeight="SemiBold"
|
||||
TextAlignment="Center"/>
|
||||
<TextBlock x:Name="ErrorText"
|
||||
Text=""
|
||||
FontSize="14"
|
||||
Foreground="#FFDDDD"
|
||||
TextWrapping="Wrap"
|
||||
MaxWidth="420"
|
||||
TextAlignment="Center"/>
|
||||
<Button Content="Cerrar"
|
||||
Width="140"
|
||||
HorizontalAlignment="Center"
|
||||
Click="OnCloseClicked"/>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</Grid>
|
||||
</Window>
|
||||
Reference in New Issue
Block a user