I want my app will play music when she is in the background too, there is any way to do it? i try to use apple documentation but it didn't work. it is possible that because i am now using the avplayer i cant play audio in background?
i play the music with
ExtAudioFileSeek(mExtAFRef, finalFrames);
You should look at documentation of using background tasks like:
and specially the:
I think playing audio in background is possible only for streaming audio. For normal audio we can only play when screen is locked.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.