Hi, I’m modifying a plugin that limits the length of a conference. I want to send a warning message before that happens. I’m using this code and many, many variations of it, based on the lobby and moderation code.
local body_json = {};
body_json.type = ‘call_ending’;
body_json.msg = “This video call will be automatically closed in 2 minutes”;
local body_json_str = json.encode(body_json);
room:broadcast_message(
st.message({ type = ‘groupchat’; from = room.jid })
:tag(‘json-message’, {xmlns=‘http://jitsi.org/jitmeet’})
:text(body_json_str):up());
and I am expecting to receive the message in the iFrame incomingMessage event but that doesn’t happen. Have I misunderstood something? Is that not where the message should end up? Or am I sending it incorrectly?
Thanks,
Gary