Question about JVB internals ( access to all transferred video frames for end-to-end encripted video recording)

I’m working on the project that use end to end encryption on the top of the Jitsi.
Now we interested in building up features to record such streams - and that where things get complicated.
Any suggestions about how I can get access to individual frames inside JVB( and transfer them to archive service for storage and decryption)?

I’m using it in MUC mode if it making any difference.
Thank you!