设置Info.plist开启后台运行,
添加Required background modes.并添加值:App plays audio
添加代码:
[[AVAudioSession sharedInstance] setActive:YES error:nil];
[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback error:nil];
设置Info.plist开启后台运行,
添加Required background modes.并添加值:App plays audio
添加代码:
[[AVAudioSession sharedInstance] setActive:YES error:nil];
[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback error:nil];