Skip to content

Instantly share code, notes, and snippets.

@drasticactions
Created December 31, 2014 15:36
Show Gist options
  • Save drasticactions/f1971188a63da722c358 to your computer and use it in GitHub Desktop.
Save drasticactions/f1971188a63da722c358 to your computer and use it in GitHub Desktop.
VLC Background Task Error
If you start playing music in VLC, the background task starts and handles it from there. That's good! If the main foreground app is running, it sends the commands to the background controls and the background controls, if pushed, send the commands back to the foreground app. Again, that's great!
Here starts the problem: if you start playing music in VLC, then kill the process (Hold the back error, hit X or swipe the app away), then restart VLC, it now has no knowledge of the background task, nor what's playing. Basically, you can get it into this state: http://i.imgur.com/HqzPBny.png
I started playing one band, killed the app, tried to play another, but it just uses the already running background task, so it does not update the playlist and just assumes whatever is playing is also is what's on the now playing screen... except it's not.
Note that this also happens if the app is suspended, not just killed. We have to check every single time the app starts or is starting from tombstone that the task is running, so you can set up the now playing screen and make sure you can switch to a different artist. It's the biggest pain in the ass in all of the Windows Phone 8.1 APIs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment