Information Regarding Jitsi Desktop Audio Stream

I’m Trying to use Jitsi codebase in one of my projects. For that i need some information regarding Jitsi Desktop.

  1. What is the flow of Audio Call in Jitsi?
    After captured from microphone, how and where exactly in the code is the CODEC negotiation taking place? Then where does the audio enter into the chosen codec for encoding in the code if e.g opus is chosen?

  2. After Encoding, encryption takes place? If yes, then what other steps happen before audio is pushed on the wire. If there is anything else happening between encoder and encryption, please share that module.

Thank you for all your help!!

Really need this information to start off.