RecordRTC is WebRTC JavaScript library for audio/video as well as screen activity recording. It supports Chrome, Firefox, Opera, Android, and Microsoft Edge. Platforms: Linux, Mac and Windows.
I am using electron to develop an application, and I found that when recording gif, if the app is hidden in the background, it will make it impossible to record