Hello everyone,
I have a few problems about that. I sendCommand at the lobby page but when join conference, addCommandlistener in conference is not working =((
How to fix it?
Thanks!
- call addCommandListener before join conference
- call sendCommandOnce after join conference
- sendCommandOnce second parameter has to be some special format.
{ value: the_value_of_the_command,
attributes: {}, // map with keys the name of the attribute and values - the values of the attributes.
children: [ ] // array with JS object with the same structure.
}
for example
let param = {value:{}, attributes:{}, children:[]}; param.value = targetId; // i only need value field
this.jitsiRoom.sendCommandOnce(“give him something to eat”, param);
1 Like
Thanks Angelina. I fixed it!