How to get the status of microphone in ReplayKit Broadcast Extension

Viewed 164

I am using ReplayKit Broadcast Extension to record system screen. I am able to get the sample buffer's for video, audioApp, audioMic & process them.

Is there any way to get the microphone status i.e whether it's enabled or disabled during the screen recording?

1 Answers

If you have declared recorder as -

var recorder = RPScreenRecorder.shared()

Then you can check it as -

if recorder.isMicrophoneEnabled == true {

}
Related