title: Playing music while windows 8 store app is in the background
body: <p>so I tried a few different approaches, and here is where I am:</p>
  
  <p>I setup the MediaElement in the App.xaml using the method shown in this thread (<a href="https://stackoverflow.com/questions/10935107/global-mediaelement-that-continues-playing-after-navigating-to-other-page">Global MediaElement that continues playing after navigating to other page</a>). It works great to keep music playing when switching panes...</p>
  
  <p>The way I setup the player handlers was to add all the methods (such as Play, Pause, next track, etc) to the LayoutAware page. This way I can control the player from any View. It works great when the app is in focus</p>
  
  <p>If I leave the original view that played the music, and switch to another app, it keeps playing in the background, which is what I want</p>
  
  <p>However, if I first change to a different view, and then move the app to the background, it stops!</p>
  
  <p>It only does this when I navigate away from the panel that first started playing the music.</p>
  
  <p>For example, if I do this:</p>
  
  <pre><code>1. launch the app
  
  2. select a track (launches NowPlaying View)
  
  3. Play the track and leave it on that same view
  
  4. Navigate to a different app or the desktop, leaving the app running in the background
  </code></pre>
  
  <p>The app continues playing music. </p>
  
  <p>If I then:</p>
  
  <pre><code>5. Navigate back to the app
  
  6. click "Back" to select a different track
  
  7. navigate to a different app or the desktop leaving the app running in the background
  </code></pre>
  
  <p>the music stops!</p>
  
  <p>Anyone have any ideas why this would happen? please let me know if you need more clarification about how I've set this up.</p>