Background Audio for Windows Phone 8.1 Sample

This sample demonstrates how to play audio on Windows Phone 8.1 when your app is not the foreground task.

3.9 Star
10,284 times
Add to favorites
E-mail Twitter Digg Facebook
Sign in to ask a question

  • Background Audio MVMM
    1 Posts | Last post November 07, 2015
    • how can i implement this agent in MVVM please ?
  • Next song does not play when locked and no power source
    1 Posts | Last post July 02, 2015
    • When the phone is connected to power source or USB and screen is locked the next song does not play. It plays if the power source is connected.
      Any help?
  • In locked screen not work.
    1 Posts | Last post May 06, 2015
    • Pou
      Because I need to play live stream, I add the httpclient in the background task.
      If the phone be locked screen, the background task be not work.
      I must open the phone and enter the start screen, the background task be wake up to work.
      How can I solve the problem? Thank you.
  • Stopping and restarting a web stream.
    1 Posts | Last post February 17, 2015
    • I’m able to stream from a web resource. When the user hits pauses the stream is paused and it seems to buffer somehow because when the user hits play it picks up on the stream where the user left off. My concern is that I don’t know how long this will buffer and how much of the phones memory I will end up using and how much of the data plan the user has. I was thinking that I would just like to stop the stream and restart it when the user presses pause then play again. I tried to use BackgroundMediaPlayer.Shutdown with some clean up. When the user presses play again MainPage throws the “Background Audio Task didn’t start in expected time”. 
      Are there any suggestions in stopping a stream and being able to restart the stream?
  • How do I show Song Title or Album
    1 Posts | Last post August 17, 2014
    • Now when I try to play the file, it just shows the file name when in background. (when I press the volume button).
      How/ where  can I set the media's tile and album. 
  • example does not play files in phone memory
    1 Posts | Last post July 28, 2014
    • i tried entring the uri myself into the playlist manager but the phone does not play it. it throws the media failed even although i do not know the entire error code. could someone please help me about this?
  • Error when editing sample
    1 Posts | Last post June 10, 2014
    • hi, i got this error when clean and rebuild this sample after i put a sealed class in both MyPlaylistManager and BackgroundAudioPlayerCS.  "Error	1	A public type has a namespace ('BackgroundAudioPlayerCS') that shares no common prefix with other namespaces ('SampleBackgroundAudio.MyPlaylistManager'). ". What i should do to fix it ? i have no idea to fix it. Thanks for you help. 
  • what to do if i want to update my secondary tile in backgeoundTask
    1 Posts | Last post May 07, 2014
    • I want to update my secondary tile when media changes.
      I call a method like "GetInfoAndUpdateTile" when the event "MediaOpened" fired.
      Now there goes my question:
        The background task exits when I want to get a Grid or other UIElements.
        And I don't know how to use XamlRenderingBackgroundTask and let it work together with this AudioBackgroundTask.
      Thanks for your help.