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

Stage View - Screen Share Mode #10844

Open
Prithvi-MSFT opened this issue May 6, 2024 · 3 comments
Open

Stage View - Screen Share Mode #10844

Prithvi-MSFT opened this issue May 6, 2024 · 3 comments
Assignees
Labels
teams-developer-support Question related to extensibility (Bot, ME, Tab) would be marked under this label

Comments

@Prithvi-MSFT
Copy link
Collaborator

Copy link
Contributor

Hi Prithvi-MSFT! Thank you for bringing this issue to our attention. We will investigate and if we require further information we will reach out in one business day. Please use this link to escalate if you don't get replies.

Best regards, Teams Platform

@ChetanSharma-msft ChetanSharma-msft added the teams-developer-support Question related to extensibility (Bot, ME, Tab) would be marked under this label label May 6, 2024
@ChetanSharma-msft
Copy link
Collaborator

Hello @Prithvi-MSFT - Please help to assign this issue to appropriate person or team from engineering team.

@v-ypalikila
Copy link
Collaborator

Hi @Prithvi-MSFT,

Can you please confirm if the following code snippet is correct to be added in the docs:

expect(shareAppContentToStageMessage.args[1]).toMatchObject(shareOptions); }); it (should successfully share app content to stage. content: ${context} context`, async () => {
await utils.initializeWithContext(context);

        let callbackCalled = false;
        let returnedSdkError: SdkError | null;
        let returnedResult: boolean | null;
        const requestUrl = 'validUrl';
        const shareOptions = {
          sharingProtocol: meeting.SharingProtocol.ScreenShare,
        };
        meeting.shareAppContentToStage(
          (error: SdkError, result: boolean) => {
            callbackCalled = true;
            returnedResult = result;
            returnedSdkError = error;
          },
          requestUrl,
          shareOptions,
        );

        const shareAppContentToStageMessage = utils.findMessageByFunc('meeting.shareAppContentToStage');
        expect(shareAppContentToStageMessage).not.toBeNull();
        const callbackId = shareAppContentToStageMessage.id;
        utils.respondToFramelessMessage({
          data: {
            id: callbackId,
            args: [null, true],
          },
        } as DOMMessageEvent);
        expect(callbackCalled).toBe(true);
        expect(returnedSdkError).toBeNull();
        expect(returnedResult).toBe(true);
        expect(shareAppContentToStageMessage.args).toContain(requestUrl);
        expect(shareAppContentToStageMessage.args[1]).toMatchObject(shareOptions);
      });

      it('should throw if the shareAppContentToStage message sends and fails', async () => {`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
teams-developer-support Question related to extensibility (Bot, ME, Tab) would be marked under this label
Projects
None yet
Development

No branches or pull requests

5 participants