Search code examples
c#win-universal-appbackground-audio

Why does Windows.Media.BackgroundPlayback.exe crash and can I debug it?


I'm trying to implement BackgroundAudio in my UWP app and I'm following the sample on github. Yet for me before the BackgroundTask gets initialized the output returns The program '[11864] Windows.Media.BackgroundPlayback.exe' has exited with code 1 (0x1).

I can't seem to figure out why though. Is there a way I can debug this?

Edit: I have put the project online. Seems a lot easier than just copy pasting parts of the code because I don't really understand where it goes wrong


Solution

  • Fixed it by adding a reference from my task to my main project