question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iFrame API: conference subject reverts back to room name after a participant changes their display name or media device

See original GitHub issue

Context:

The conference subject is the text that appears at the top of the videoconference when you hover your cursor over it. Screenshot from 2020-08-05 20-58-25 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: bernie 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:

  1. Embed the iFrame API in a test web application
  2. Programatically set up a conference room with a custom conference subject
  3. Open your app in a browser
  4. 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:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

1reaction
psi-4wardcommented, Aug 15, 2020

My workaround is to ignore the XMPPEvents.SUBJECT_CHANGED Message in https://github.com/jitsi/lib-jitsi-meet/blob/master/modules/xmpp/ChatRoom.js#L1011

1reaction
psi-4wardcommented, Aug 15, 2020

It is because XMPP sends the update message:

<S.onMessage>:  Subject is changed to ....

and the new subject is the real roomName and not the subject set by external_api

Read more comments on GitHub >

github_iconTop Results From Across the Web

IFrame API | Jitsi Meet - GitHub Pages
The Meet API provides a full complement of comprehensive meeting features. Your Jitsi meetings can be hosted and attended using any device while...
Read more >
The Ultimate Guide to Jitsi Meet and JaaS - webrtcHacks
The options object lets you set the room name, credentials, iFrame size, participant, and available media device info, and where in your DOM ......
Read more >
No recording option available - Jitsi Community Forum
Hi there, After some back and forth I was able to configure jibri. However, when joining a meeting, the recording option does not...
Read more >
display name changing every time even after edit b...
Changing your name in your profile later does not reflect in your prior meeting registrations, in many situations. Is this what is happening...
Read more >
Application Programmer Interface (API) Reference Guide - Cisco
Cisco Proximity allows you to automatically pair your device ... Renamed to: SIP DisplayName ... name of the codec in your favorite web...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found