Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Don't set AVAudioSession category #8

Closed
wants to merge 1 commit into from
Closed

Conversation

ndbroadbent
Copy link

This doesn't seem to be necessary, and can screw up AVCaptureSessions - specifically, subsequent calls to AVCaptureMovieFileOutput#startRecordingToOutputFileURL

Fixes #7

… and screws up AVCaptureSessions - specifically, subsequent calls to `AVCaptureMovieFileOutput#startRecordingToOutputFileURL`
@jpsim
Copy link
Owner

jpsim commented Mar 30, 2015

Are you sure it's not needed? I thought it was necessary to not affect the rest of the system's audio (e.g. currently playing music).

@ndbroadbent
Copy link
Author

I'm not sure, but I'm already setting it to AVAudioSessionCategoryAmbient in my app. It seems that setting it again screws up my AVCaptureSession, for some reason, and I can no longer record videos.
But also, we aren't actually changing the volume here, since it's being set back to the previous value?

Anyway, that's ok, my case is probably a pretty obscure bug, so I'm happy to just use a fork for now. Maybe we can wait until either Apple fixes it, or someone else reports the same issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Weird bug when used at the same time as an AVCaptureSession
2 participants