Instead of failing with an error if another operation is in progress, which is impossible to know as a user, chain them using the primises API.
You can use Jitsi Meet API to create Jitsi Meet video conferences with a custom GUI.
Checkout the examples.
To build the library, just type:
npm install