Web-Sender: WebView2 Browser-Integration (YouTube, Netflix, Mediatheken mit persistentem Login)
This commit is contained in:
parent
ab1954e28c
commit
72bafbcba6
7 changed files with 214 additions and 364 deletions
|
|
@ -1,6 +1,7 @@
|
|||
<Window x:Class="FritzTV.MainWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:wv2="clr-namespace:Microsoft.Web.WebView2.Wpf;assembly=Microsoft.Web.WebView2.Wpf"
|
||||
xmlns:vlc="clr-namespace:LibVLCSharp.WPF;assembly=LibVLCSharp.WPF"
|
||||
Title="HomeStream"
|
||||
Height="720" Width="1280"
|
||||
|
|
@ -147,6 +148,8 @@
|
|||
ToolTip="DVB-C-Radio über die FritzBox"/>
|
||||
<Button x:Name="BtnRadioOnline" Content="📡 Radio (Online)" Style="{StaticResource SidebarButton}" Click="BtnCategory_Click" Tag="radio-online"
|
||||
ToolTip="Webradio (ÖR-Streams)"/>
|
||||
<Button x:Name="BtnWeb" Content="🌐 Web-Sender" Style="{StaticResource SidebarButton}" Click="BtnCategory_Click" Tag="web"
|
||||
ToolTip="YouTube, Netflix, Mediatheken etc. (Browser)"/>
|
||||
<Separator Margin="8" Background="#333"/>
|
||||
<Button x:Name="BtnFav" Content="⭐ Favoriten" Style="{StaticResource SidebarButton}" Click="BtnCategory_Click" Tag="fav"/>
|
||||
<Separator Margin="8" Background="#333"/>
|
||||
|
|
@ -224,8 +227,9 @@
|
|||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<!-- VideoView -->
|
||||
<!-- VideoView + WebView2: beide im gleichen Grid-Cell, Visibility steuert wer sichtbar ist -->
|
||||
<Grid Grid.Row="0">
|
||||
<!-- VLC-Player fuer TV/Radio -->
|
||||
<vlc:VideoView x:Name="VideoView" Background="Black">
|
||||
<Border x:Name="VideoOverlay"
|
||||
Background="#01000000"
|
||||
|
|
@ -350,6 +354,11 @@
|
|||
</Grid>
|
||||
</Border>
|
||||
</vlc:VideoView>
|
||||
|
||||
<!-- WebView2 fuer Web-Sender (YouTube, Netflix, Mediatheken etc.) -->
|
||||
<!-- Persistentes User-Data-Profil: Login bleibt erhalten -->
|
||||
<wv2:WebView2 x:Name="WebView"
|
||||
Visibility="Collapsed"/>
|
||||
<TextBlock x:Name="TxtNoChannel"
|
||||
Text="Wähle einen Sender aus der Liste"
|
||||
Foreground="#666" FontSize="18"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue