code-matt / react-native-replaykit

A React Native module to access ReplayKit screen recording framework on iOS
13 stars 14 forks source link

added audio recording support with video #8

Closed code-matt closed 5 years ago

code-matt commented 5 years ago

I will merge this in with iOS13 since this thing is pretty busted with the ReplayKit bug anyways that is being fixed. I have some small updates for it on record_inapp_audio_merge branch. Also added mic audio and working on making both tracks optional.

There was an issue with this audio added where sometimes it would try to write a sample even with stopCapture called. Keeping track of the start/stop state in the class and blocking startCapture's sample callback when in self.finishCalled state seems to have stopped the crash.