XXX
XXX

Reputation: 9072

Detect video recording start

In my program I'm recording audio with a microphone. And now I need to know when the user turns on a video record to release the microphone. How can I detect it. Is there any events?

Upvotes: 1

Views: 764

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006744

And now I need to know when the user turns on a video record to release the microphone.

No, the user needs to know to shut down your app before trying to record a video.

How can I detect it. Is there any events?

You can try to use the audio focus stuff in AudioManager, though that was designed with playback in mind IIRC.

Beyond that, you have no way of knowing if anything is attempting to record video.

Upvotes: 1

Related Questions