donation button
How could we inject a nice message like
One hour here.
Want to stay?
Then please pay.
Or we dim the light
and reduce bandwidth.
Pay what you can for
our fairmeeting service.
Be a splendid hero!
Here are some thoughts combined with some ChatGPT answers.
iFrame APi
Sending a Chat Message
To send a message to the Jitsi Meet room programmatically, use the Jitsi Meet API’s executeCommand function. Here’s an example using the Jitsi IFrame API:
Initialize Jitsi Meet API:
const domain = "meet.jit.si"; const options = { roomName: "YourMeetingRoom", width: "100%", height: 700, parentNode: document.querySelector("#jitsi-container"), configOverwrite: {}, interfaceConfigOverwrite: {} }; const api = new JitsiMeetExternalAPI(domain, options);
Send a chat message:
api.executeCommand('sendEndpointTextMessage', '', 'Your message here');
This command will send a message to all participants in the meeting.
See https://jitsi.github.io/handbook/docs/dev-guide/dev-guide-ljm-api
Alternative approach:
If we put the conference in an iFrame, then we could use the API and send e.g a text message: https://jitsi.github.io/handbook/docs/dev-guide/dev-guide-iframe-commands#sendchatmessage
You can add a donation button to your website and embed Jitsi Meet in an iframe, allowing you to place the button wherever you like around the embedded video meeting. Here’s how you can add a donation button next to the embedded meeting interface:
Embed Jitsi Meet using an iframe:
Define the donate function to handle donations:
function donate() { window.open('https://your-donation-url.com', '_blank');
This probably would require another conference launch logic.
embed code
Modify the UI to add a button in the desired location (e.g., interface_config.js or directly in the frontend code). Create an API endpoint that handles donations and links it to the button.