Wyler icon indicating copy to clipboard operation
Wyler copied to clipboard

Add 'recordAudio' switch

Open admarwick opened this issue 4 years ago • 2 comments

This PR adds a 'recordAudio' option to the startRecording method of ScreenRecorder. If recordAudio is false then the screen is recorded without an audio track.

The sample app is also updated to include a "Start Recording Without Audio" button.

A minor change is that when recordAudio is false, the RPRecorder.isMicrophoneEnabled is also false, which ensures that the ensuing permissions dialog doesn't mention the microphone in that scenario.

admarwick avatar Oct 19 '21 17:10 admarwick

I will love to have that ! For my capacitor plugin https://github.com/riderx/capacitor-screen-recorder

riderx avatar Dec 02 '21 19:12 riderx

This solutions works great, but I have one use case where I can't use it. I want to switch the audio recording ON and OFF meanwhile the video keeps playing. I tried different things but so far does not work, so you have any solution accesible for this?

kiketordera avatar Apr 13 '22 11:04 kiketordera