How to enable local machine video call recording with external api and own jitsi server

Hi Can someone provide good documentation to implements record video call to the local machine using external API and my own jitsi server?