Screen sharing using lib-jitsi-meet api?

Hi is there any example of how to achieve screen sharing using lib-jitsi-meet api?

api.executeCommand(‘toggleShareScreen’);

toggleShareScreen.addEventListener('click',() => {
api.executeCommand('toggleShareScreen');

});

Thank you, I will try it out;

isn’t this the iframe api?

my question is how to do it from LIB-JITSI-MEET api

<script src='https://<your-domain>/external_api.js'></script>

looks like you are not understanding the question itself; I dont need details about the iframe api;