@@ -333,7 +333,7 @@ namespace FoxTube
|
|||||||
|
|
||||||
public void UpdateSize()
|
public void UpdateSize()
|
||||||
{
|
{
|
||||||
if(layout == PlayerLayout.Minimized)
|
if(layout != PlayerLayout.Normal)
|
||||||
Height = Window.Current.Bounds.Height;
|
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()))
|
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());
|
videoPlayer.Source = MediaSource.CreateFromUri(streamInfo.Muxed.Find(x => x.VideoQualityLabel == (quality.SelectedItem as ComboBoxItem).Content as string).Url.ToUri());
|
||||||
|
|
||||||
audioPlayer?.Dispose();
|
|
||||||
audioPlayer = null;
|
audioPlayer = null;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -509,15 +507,14 @@ namespace FoxTube
|
|||||||
{
|
{
|
||||||
ApplicationView.GetForCurrentView().TryEnterFullScreenMode();
|
ApplicationView.GetForCurrentView().TryEnterFullScreenMode();
|
||||||
fullscreen.Content = "\xE1D8";
|
fullscreen.Content = "\xE1D8";
|
||||||
Height = Methods.MainPage.Height;
|
|
||||||
layout = PlayerLayout.Fullscreen;
|
layout = PlayerLayout.Fullscreen;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ApplicationView.GetForCurrentView().ExitFullScreenMode();
|
ApplicationView.GetForCurrentView().ExitFullScreenMode();
|
||||||
fullscreen.Content = "\xE1D9";
|
fullscreen.Content = "\xE1D9";
|
||||||
Height = double.NaN;
|
|
||||||
layout = PlayerLayout.Normal;
|
layout = PlayerLayout.Normal;
|
||||||
|
Height = double.NaN;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user