mirror of
https://github.com/samsonjs/SwiftyCam.git
synced 2026-04-27 15:07:43 +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
|
// Allow background audio to continue to play
|
||||||
do {
|
do {
|
||||||
if #available(iOS 10.0, *) {
|
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 {
|
} else {
|
||||||
}
|
}
|
||||||
} catch let error as NSError {
|
} catch let error as NSError {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue