[iOS-SDK] Queue not playing in Background

5 views
Skip to first unread message

Alex Zeitler

unread,
Aug 28, 2015, 6:46:36 AM8/28/15
to Rdio API
Hi,

I'm currently having problems playing a queue in the background on older versions of iOS (8.3 and lower) using the iOS SDK 3.0.3.
The tracks themselves are available and playing the queue works fine in the foreground. I've also implemented the change observer as suggested in the documentation.

I'm logging player state and currentTrack changes, so hopefully that will give you an indication of what's happening (I removed the "create new background task" logs):

2015-08-28 10:44:02.670 myApp[14158:60b] Old state: Playing - New state: Stopped

2015-08-28 10:44:02.671 myApp[14158:60b] Old state: Stopped - New state: Buffering

2015-08-28 10:44:03.783 myApp[14158:60b] Received a currentTrack notification:t4544310

2015-08-28 10:44:05.050 myApp[14158:60b] Old state: Buffering - New state: Playing

2015-08-28 10:44:05.057 myApp[14158:60b] Old state: Playing - New state: Buffering

2015-08-28 10:44:05.058 myApp[14158:60b] Received a currentTrack notification:<null>

2015-08-28 10:44:05.059 myApp[14158:60b] Old state: Buffering - New state: Stopped

2015-08-28 10:44:05.061 myApp[14158:60b] Old state: Stopped - New state: Buffering

2015-08-28 10:44:05.554 myApp[14158:60b] Received a currentTrack notification:t16786992

2015-08-28 10:44:06.786 myApp[14158:60b] Old state: Buffering - New state: Playing

2015-08-28 10:44:06.791 myApp[14158:60b] Old state: Playing - New state: Buffering

2015-08-28 10:44:06.792 myApp[14158:60b] Received a currentTrack notification:<null>

2015-08-28 10:44:06.792 myApp[14158:60b] Old state: Buffering - New state: Stopped


This is my log after the first song in the queue finished playing.

Those logs come in within a few seconds and while it would indicate that the player is actually playing anything I haven't observed any audio coming from the device.


Any idea what's going on there? I could just tell people to upgrade their OS, but I'd rather keep that as my emergency option in case all else fails.


Cheers,


Alex


Reply all
Reply to author
Forward
0 new messages