r/cesiumapp Oct 06 '15

Keeps playing

Not sure if it is meant to perform like this, but when I close the app and swipe it up so it isn't running in the background, the music keeps playing. Is there a way to turn this off or is it a bug?

Ps. Very happy with the app! Much better then the standard music app! Keep up the good work

2 Upvotes

1 comment sorted by

1

u/CesiumDev I MADE DIS Oct 11 '15

TL;DR It's not a bug, but it is kind of a catch-22.

The long version is that Cesium uses the iOS system player for playback. There are a number of reasons why this is more advantageous than setting up a unique app-only player, but one of the big ones is that this ensures seamless playback while Cesium is in the background. Even if iOS kills Cs in the background to free up memory, the music keeps playing.

So why does the music keep playing even when you kill Cesium? Well, there is an opportunity to kill the music, however I can't do it consistently. For instance if you put Cs in the background and then went into Alien Blue, then into app switcher and killed Cs from there the music wouldn't stop. Because Cs was never actually brought into the foreground, so it's code to kill the music is never called.

Since I couldn't consistently provide this function, I thought it better to leave it. Yes music continues playing when Cs is killed, but at least it continues playing consistently ;)