How can I process video and audio separately?

I am thinking a feature like this for our app:

  • pause the video if congestion of network is detected;
  • allow audio continue to get through while video is paused.

This will not only benefit wide network users, and also fit nicely to other important features of our app.

Is there a way to do that? What are the relevant APIs? I guess it would be only desktop related?

I am completely new to Jitsi, but hope someone can really help.

Thanks a lot.