How to Use Own JavaScript Bundle CallComposite.js to Join a Teams Meeting as Teams User

Udara Chandimal 0 Reputation points
2024-11-27T05:17:45.7266667+00:00

I am trying to use callComposite.js (https://azure.github.io/communication-ui-library/?path=/docs/composites-build-your-own-javascript-bundle--docs) to join a teams meeting as a Teams user. I can successfully join the meeting as an external user but need to join the meeting from my own teams account.
I have followed the documentation and created the necessary token and I can successfully join the meeting as a Teams user in here https://azure.github.io/communication-ui-library/?path=/story/composites-callcomposite-join-existing-call-as-teams-user--join-existing-call-as-teams-user

I just need to know how to adjust following set of code line to join the meeting as a teams user

      const callAdapter = await callComposite.loadCallComposite(
        {
          locator: { meetingLink: this.meetingURL },
          userId: { microsoftTeamsUserId: this.teamsUserIdentifier.RawId },
          token: this.accessToken,
          options: {
          }
        },
        document.getElementById('call-container'),
        {
        }
      );
Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
1,009 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Laxman Reddy Revuri 2,465 Reputation points Microsoft Vendor
    2024-12-02T08:34:42.0333333+00:00

    Hi @Udara Chandimal
    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to accept the answer

    Ask: How to Use Own JavaScript Bundle CallComposite.js to Join a Teams Meeting as Teams User
    Solution:I have raised the same problem in the azure communication ui library git hub repository discussion. They have mentioned that there is an issue in that JavaScript file when we use MicrosoftUserId. They going to fix it in near soon.

     Please don’t forget to Accept Answer and Yes for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members. 

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.