mirror of
https://github.com/samsonjs/SwiftyCam.git
synced 2026-03-25 09:05:52 +00:00
Merge pull request #202 from blurtime/patch-1
Change category of AVAudioSession
This commit is contained in:
commit
3f461e60d5
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ class VideoViewController: UIViewController {
|
|||
// Allow background audio to continue to play
|
||||
do {
|
||||
if #available(iOS 10.0, *) {
|
||||
try AVAudioSession.sharedInstance().setCategory(AVAudioSession.Category.ambient, mode: .default, options: [])
|
||||
try AVAudioSession.sharedInstance().setCategory(AVAudioSession.Category.playback, mode: .default, options: [])
|
||||
} else {
|
||||
}
|
||||
} catch let error as NSError {
|
||||
|
|
|
|||
Loading…
Reference in a new issue