iphone - Get AVPlayer that is current playing the audio -



iphone - Get AVPlayer that is current playing the audio -

i using avplayer, , user able leave screen controlling audio, come same sound playing. have accomplished this, can't seem regain command of avplayer playing audio. there phone call allows me avplayer running?

i'm answering own question because may helpful someone...

i created global avplayer making property of appdelegate , initializing there. created instance of appdelegate in viewcontroller, , accessed global avplayer there. leave screen , come in app, , still had command of avplayer.

iphone ios avplayer

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -