Mute button for hd resolutions fixed
Updated localization
This commit is contained in:
@@ -25,6 +25,7 @@ namespace FoxTube
|
||||
public event RoutedEventHandler LiveRequested;
|
||||
public event MinimodeChangedEventHandler MiniModeChanged;
|
||||
public event RoutedEventHandler NextRequested;
|
||||
public event Event MuteClicked;
|
||||
|
||||
public event QualityChangedEventHandler QualityChanged;
|
||||
|
||||
@@ -107,6 +108,8 @@ namespace FoxTube
|
||||
Volume_ValueChanged(this, null);
|
||||
else
|
||||
((GetTemplateChild("AudioMuteButton") as Button).Content as FontIcon).Glyph = ((GetTemplateChild("volume") as Button).Content as FontIcon).Glyph = "\xE74F";
|
||||
|
||||
MuteClicked?.Invoke();
|
||||
}
|
||||
|
||||
private void Volume_ValueChanged(object sender, RangeBaseValueChangedEventArgs e)
|
||||
|
||||
@@ -91,6 +91,7 @@ namespace FoxTube
|
||||
Controls.NextRequested += (s, e) => NextClicked?.Invoke();
|
||||
Controls.QualityChanged += Controls_QualityChanged;
|
||||
Controls.MiniModeChanged += Controls_MiniModeChanged;
|
||||
Controls.MuteClicked += Controls_MuteClicked;
|
||||
Controls.Player = videoSource;
|
||||
|
||||
#region System Media Transport Controls
|
||||
@@ -110,6 +111,12 @@ namespace FoxTube
|
||||
#endregion
|
||||
}
|
||||
|
||||
private void Controls_MuteClicked()
|
||||
{
|
||||
if (audioSource != null)
|
||||
audioSource.IsMuted = videoSource.IsMuted;
|
||||
}
|
||||
|
||||
public void Controls_MiniModeChanged(object sender, bool e)
|
||||
{
|
||||
videoSource.IsFullWindow = false;
|
||||
|
||||
@@ -294,4 +294,7 @@
|
||||
<data name="wl.Text" xml:space="preserve">
|
||||
<value>Watch later</value>
|
||||
</data>
|
||||
<data name="live.Text" xml:space="preserve">
|
||||
<value>🔴 LIVE</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -294,4 +294,7 @@
|
||||
<data name="wl.Text" xml:space="preserve">
|
||||
<value>Посмотреть позже</value>
|
||||
</data>
|
||||
<data name="live.Text" xml:space="preserve">
|
||||
<value>🔴 ПРЯМОЙ ЭФИР</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -581,7 +581,7 @@
|
||||
</Button.Flyout>
|
||||
</Button>
|
||||
<Button x:Name="goLive" Width="NaN" Visibility="Collapsed">
|
||||
<TextBlock Text="🔴 LIVE"/>
|
||||
<TextBlock x:Uid="/VideoPage/live" Text="🔴 LIVE"/>
|
||||
</Button>
|
||||
</StackPanel>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user