iphone - How can we make the NSTimer to run in background for my audio player in iOS -


i making audio player in ios , have made audio player,and updating duration of playing song using nstimer,but thing if app goes in background timer stops .

is there way can run nstimer in background ,in order update playing song current duration. how apple running audio player in background?

mpmediaplayer , avqueueplayer progress slider, time left , time elapsed.

if app in background, nobody see update anyway.

just make sure start timer again when app coming foreground, , you'll fine.


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -