private async void playButton_Click(object sender, RoutedEventArgs e)
        {
            if (featuredStreamMediaElement.CurrentState != MediaElementState.Paused &&
                featuredStreamMediaElement.CurrentState != MediaElementState.Stopped &&
                featuredStreamMediaElement.CurrentState != MediaElementState.Closed)
            {
                featuredStreamMediaElement.Stop();
                playPauseIcon.Symbol = Symbol.Play;
            }
            else if (featuredStreamMediaElement.CurrentState == MediaElementState.Paused ||
                     featuredStreamMediaElement.CurrentState == MediaElementState.Stopped)
            {
                featuredStreamMediaElement.Play();
                playPauseIcon.Symbol = Symbol.Stop;
            }
            else
            {
                streamPreviewImage.Source = null;
                var selectedQuality = qualities[selectedStreamIndex];
                featuredStreamMediaElement.Source = await HelperMethods.GetPreferredQuality(selectedQuality);

                featuredStreamMediaElement.Play();
                playPauseIcon.Symbol = Symbol.Stop;
            }
        }
        private async Task PlayStream()
        {
            try
            {
                qualities = await HelperMethods.RetrieveHlsStream(stream.channel.name);
            }
            catch
            {
                streamOfflineTextBlock.Visibility = Visibility.Visible;
                playPauseButton.IsEnabled         = false;
            }
            streamElement.Source = await HelperMethods.GetPreferredQuality(qualities);

            streamElement.Play();
            playPauseButton.IsEnabled = true;
        }