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
Post a Comment