iFrame API: conference subject reverts back to room name after a participant changes their display name or media device
See original GitHub issueContext:
The conference subject is the text that appears at the top of the videoconference when you hover your cursor over it. Usually, the conference subject is a human-friendly version of the room name, i.e. the identifier of the videoconference that you write in the address bar.
When using the iFrame API, though, the conference subject can be set to whatever you want by means of the command
api.executeCommand('subject', 'New Conference Subject');
Bug Description:
In a meeting with a custom conference subject, if any participant edits their display name during the call, the conference subject reverts back to the room name: In this example above the room name is a pseudorandom alphanumeric string, and the conference subject has been customized to the text “pruebita total”. However, when the participant changes their display name from “Bernie Sanders” to “aoeu”, the conference subject goes back to that alphanumeric string.
Note that this change is visible to all the participants of the call.
Steps to reproduce:
- Embed the iFrame API in a test web application
- Programatically set up a conference room with a custom conference subject
- Open your app in a browser
- Change your display name
Expected behavior:
The conference subject should remain intact after the display name change
Actual behavior:
The conference subject unexpectedly reverts back to the room name after the display name change
Temporary fix
Create an event listener that sets the desired conference subject after each display name change event:
API.on('displayNameChange', () => {
API.executeCommand('subject', 'New Conference Subject');
});
The room name will flicker for a second and then go back to the desired value.
Edit 2020-08-19: This also happens when someone changes their media device, as described in #7502. There might be other actions that trigger this. Also, the subject doesn’t become the room name, but rather becomes an empty string (as can be seen in the logs and in the subjectChange
event), so the room name is shown instead.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:5
Top GitHub Comments
My workaround is to ignore the
XMPPEvents.SUBJECT_CHANGED
Message in https://github.com/jitsi/lib-jitsi-meet/blob/master/modules/xmpp/ChatRoom.js#L1011It is because XMPP sends the update message:
and the new subject is the real roomName and not the subject set by external_api