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