ios - Creating new AVPlayer while in background does not work? -


i'm playing music avplayer. @ time nstimer fires , i'dlike fade on track. start fading out avplayer , create new avplayer instance play next song.

when on foreground works expected. when app on background. playing track fades out new avplayer instance not start playing. not possible create new avplayer instance on background? or how can make play? or there way overlap 2 tracks?

i playback avqeueupalyer, can't let tracks overlap. suggestions?

-- edit --

if not clear, able play background audio long want. creating new avplayer instance in background not work.

the correct way wanted seems avmutablecomposition. don't need multiple avplayers , few other benefits. more details: summarized in blogpost: http://www.postblog.me/2012/03/playing-multiple-overlapping-audio-tracks-in-background/


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -