Audio upnp playing in suspend

Hello, i manage upnp controller application, that contols music playback on remote upnp renderer.

Based on upnpx all works fine. Except energy save with use suspend - lock screen. App stop and music playback too...

For remote playback is not necessary show or make alltime any events. Render obtain info for actual track and too for next.

Then if we sum time of this two songs, before end second is necessary wake up application and send new information to renderer.

I try use background fetch , but this dont work. Solve this is urgent for normal use app on iOS.


Second issue with this type of music is show track info - album art on lock screen. I dont understand why this is impossible for remote upnp plyback.


If anybody have good solution , please share info.

Then if we sum time of this two songs, before end second is necessary wake up application and send new information to renderer.

iOS simply does not have the ability for you to schedule a resume of your app at some known time. Your app can resume in the background for various reasons (silent push, NSURLSession background sessions, background fetch, and so on) but there’s no way to simply schedule a resume at a particular time.

I’ve seen folks attempt to do something like this by using the “audio” background session to keep the app running in the background forever. In some ways that makes sense (you are, after all, playing audio, although not on the iOS device) but last I checked App Review took a dim view of this approach.

In short, I don’t think there’s a good solution for based on your current design.

Can you queue up more than one track on the renderer? If so, your best option might be to push a substantial amount of music to the renderer (a whole album, say, or perhaps a couple of hours of music) and then schedule a local notification to remind the user that they’re running out of music.

Second issue with this type of music is show track info - album art on lock screen. I dont understand why this is impossible for remote upnp plyback.

This is usually done via MPNowPlayingInfoCenter. I don’t know enough about that class to help you with it, alas.

Share and Enjoy

Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Ok to this result i too...

UPNP cant handle more as actual and next rendering, by design.


Is other way use PUSH from upnp device? When end actual track send push , but i dont have info howto do this on wifi (or lan)?


iOS with upnp music = drain battery foreground app . No optimal solution i found.

Oghhh

Audio upnp playing in suspend
 
 
Q