Record livestream video on Android

Have any solution to record livestream video and save it to local folder on Android?
If having, how should I do?
I have checked mediaDevices.getDisplayMedia() but it just ask permission, and I don’t see the way to take the recording video.
Have I missed some property?
I saw this Is there a way to implement screen sharing? · Issue #57 · react-native-webrtc/react-native-webrtc · GitHub but still can’t find the anwser @@

@saghul can you help me? thanks.