ios - AVCaptureSession startRunning is unmuting device -
ios - AVCaptureSession startRunning is unmuting device -
my application has various sound effects buttons , other actions, if device muted/silenced don't create sounds expected. however, 1 of screens video recording, , if screen navigated enables of sound effects everywhere in app. commenting out things determined startrunning function - i'm not sure if normal behavior because starting photographic camera enables related things, audio, or if there's weird going on can change.
if you're doing video recording you're using avaudiosessioncategoryplayandrecord
category. category ignore mute switch on side of device, design. see here definitions of avaudiosession categories. in short, there's no way respect mute switch when using sound category. maybe when switch away screen, should set sound session category else avaudiosessioncategoryambient
if not impact app.
ios objective-c cocoa-touch avcapturesession
Comments
Post a Comment