@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user