Create custom event in jitsi and send data to client side

I want to add one custom button on meeting screen and on click of it, I need to fire one custom event that sends data (all participant’s audio and video status at a same time) to client side, how can I create custom event for that in jitsi?