Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Username missing when more than one user join the same call #55

Open
rajatShr opened this issue May 5, 2024 · 0 comments
Open

Username missing when more than one user join the same call #55

rajatShr opened this issue May 5, 2024 · 0 comments

Comments

@rajatShr
Copy link

rajatShr commented May 5, 2024

Hi All
I'm using agora-react-web-uikit (v1.0.8) with plain JavaScript.
However, when more than one user join the same call, the username is not displayed. Please refer to the screenshot and code below for details. And also showPopUpBeforeRemoteMute is not working.
Your advice would be appreciated.
Thanks.

`

<script src="js/agora/agora-uikit.js" ></script>
<!-- -->
<agora-react-web-uikit
    style="width: 100%; height: 100vh; display: flex;"
    appId="{{ app_id }}"
    channel="{{ channel }}"
    token="{{ token }}"
    uid="{{ meeting_id }}"
    displayUsername=true
    username="{{ username }}"
    showPopUpBeforeRemoteMute="true"
    layout="1"
/>
<script>
    var meeting_index_url = "{% url 'classRoom:leave-meeting' subject.id %}";

    const el = document.querySelector('agora-react-web-uikit');
   
    el.addEventListener('agoraUIKitEndcall', (e) => {
        // handle endcall event
        el.remove();

        window.open(meeting_index_url, '_self')
    });
</script>
`

Screenshot from 2024-05-05 13-17-12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant