UIImpactFeedbackGenerator Not Working When Audio Device Added to AVCaptureSession

后端 未结 2 2012
时光取名叫无心
时光取名叫无心 2021-02-07 10:58

Adding microphone audio input to AVCaptureSession seems to disable UIImpactFeedbackGenerator.

let audioDevice = AVCaptureDevice.defaultD         


        
2条回答
  •  忘了有多久
    2021-02-07 11:36

    Audio session (via AVAudioPlayer, AVCaptureMovieFileOutput, etc), then the phone will NOT vibrate.

    I am not sure but 99% not working with AVCaptureMovieFileOutput. Please more info: https://developer.apple.com/documentation/audiotoolbox/1405202-audioservicesplayalertsound

提交回复
热议问题