How to continue audio playback in background mode

前端 未结 3 2117
遇见更好的自我
遇见更好的自我 2021-02-14 05:21

I have a UIWebView that plays video clips in my view controller. When I exit the app, the audio will stop playing, although I can press play in the control center to continue it

3条回答
  •  滥情空心
    2021-02-14 05:44

    A common "trick" is to play a white sound that keeps your app running. But it will display a red bold status bar

提交回复
热议问题