Commit Graph

6 Commits

Author SHA1 Message Date
Marc Rousavy
4ea636e0d0
Automatically handle Audio interruptions (#113)
* Remove audio device when interruption begins

* Remove ReactLogger:alsoLogToJS

* Fix ReactLogger.logJS calls

* Fix `AVCaptureSessionInterruptionReasonKey` cast
2021-03-29 14:12:04 +02:00
Marc Rousavy
cd180dc73b Set automaticallyConfiguresApplicationAudioSession = false 2021-03-29 13:18:02 +02:00
Marc Rousavy
8825a54342 Fix automatically configures application audio session 2021-03-29 11:43:01 +02:00
Marc Rousavy
1558dd2f15
Error when Audio Input is in use by another app (#111)
* Remove Audio Device if it failed to configure

* Add `audio-in-use-by-other-app` error

* Try removing on interruption

* Format code

* Make error more clear
2021-03-29 11:32:00 +02:00
Marc Rousavy
b25cf6a04f Refactor lifecycle vars 2021-03-26 16:28:08 +01:00
Marc Rousavy
9404b93dc3 Extract AVCaptureSession and AVAudioSession setup to extensions 2021-03-26 16:20:57 +01:00