How can we improve the Windows dev platform?

MediaPlayer does not play on calling Play method when app is minimized

I want to start a sound, even when the app is minimized. The play action can be initiated from an App Service (Desktop Bridge). My app has the background audio capability and uses extended execution. So the app is not suspended and keeps running in the background. But if I start a sound using MediaPlayer when the app is minimized, the sound does not play. As soon as I open the app, the sound starts. Minimizing again will not affect the sound: it keeps playing.

2 votes
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    Wim Bokkers shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...
      • Wim Bokkers commented  ·   ·  Flag as inappropriate

        I also included the extendedExecutionBackgroundAudio capability. This doesn't fix this issue, unfortunately.

      Feedback and Knowledge Base