Archived
1
0

Fullscreen mode fixes

Related Work Items: #240
This commit is contained in:
Michael Gordeev
2019-01-03 20:38:06 +03:00
parent 605330bd83
commit cab764659d
+2 -5
View File
@@ -333,7 +333,7 @@ namespace FoxTube
public void UpdateSize()
{
if(layout == PlayerLayout.Minimized)
if(layout != PlayerLayout.Normal)
Height = Window.Current.Bounds.Height;
}
@@ -455,8 +455,6 @@ namespace FoxTube
if (streamInfo.Muxed.ToList().Exists(x => x.VideoQualityLabel == (quality.SelectedItem as ComboBoxItem).Content.ToString()))
{
videoPlayer.Source = MediaSource.CreateFromUri(streamInfo.Muxed.Find(x => x.VideoQualityLabel == (quality.SelectedItem as ComboBoxItem).Content as string).Url.ToUri());
audioPlayer?.Dispose();
audioPlayer = null;
}
else
@@ -509,15 +507,14 @@ namespace FoxTube
{
ApplicationView.GetForCurrentView().TryEnterFullScreenMode();
fullscreen.Content = "\xE1D8";
Height = Methods.MainPage.Height;
layout = PlayerLayout.Fullscreen;
}
else
{
ApplicationView.GetForCurrentView().ExitFullScreenMode();
fullscreen.Content = "\xE1D9";
Height = double.NaN;
layout = PlayerLayout.Normal;
Height = double.NaN;
}
}