Example #1
0
 private void OnStreamStateInfoReceivedFromBackground(ValueSet vs)
 {
     System.Diagnostics.Debug.WriteLine("Foreground: Received stream state from background");
     Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
     {
         System.Diagnostics.Debug.WriteLine("Foreground: Applying background stream state");
         _si = StreamInfo.FromString(vs["BACKGROUND_STREAMSTATE"] as string);
         if (_si != null)
         {
             mePlayer.Source = new Uri(_si.StreamURL);
         }
     });
 }