how to start to play music in locked screen in iPhone

前端 未结 2 1939
暗喜
暗喜 2021-02-10 15:03

I am using UILocalNotification to alert the user if app not running and MPMusicPlayerController to play iPod music and MPMoviePlayerController

2条回答
  •  北荒
    北荒 (楼主)
    2021-02-10 15:44

    use AVAudioSessionCategoryPlayback for audio session. Check audio session programming guide here

提交回复
热议问题