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

Share to Stage for Guest Users #11268

Open
joylin2024 opened this issue Jul 18, 2024 · 42 comments
Open

Share to Stage for Guest Users #11268

joylin2024 opened this issue Jul 18, 2024 · 42 comments
Assignees
Labels
needs-attention needs-author-feedback Needs more info from the customer. teams-developer-support Question related to extensibility (Bot, ME, Tab) would be marked under this label

Comments

@joylin2024
Copy link

Type of issue

Missing information

Feedback

A scenario where the host shares app content to the stage and the guest can see both the shared screen and the collaborative app content in a meeting using JavaScript.

Page URL

https://learn.microsoft.com/en-us/microsoftteams/platform/apps-in-teams-meetings/build-apps-for-teams-meeting-stage?tabs=desktop%2Capp-content%2Cshare-app-content

Content source URL

https://github.com/MicrosoftDocs/msteams-docs/blob/main/msteams-platform/apps-in-teams-meetings/build-apps-for-teams-meeting-stage.md

Author

@v-sdhakshina

Document Id

5ca1f6b3-347e-7182-0d26-d282e26f3614

@Nivedipa-MSFT
Copy link

@joylin2024 - Thank you for reporting your issue. We are not quite clear on the details. Could you please elaborate further?

@Prasad-MSFT Prasad-MSFT added teams-developer-support Question related to extensibility (Bot, ME, Tab) would be marked under this label and removed needs-triage 🔍 labels Jul 19, 2024
@joylin2024

This comment was marked as resolved.

@Nivedipa-MSFT
Copy link

Nivedipa-MSFT commented Jul 22, 2024

@joylin2024 - thanks for sharing the screenshots for our understanding. Just a quick query here, do you want these to be documented in the official documentation or what is your actual requirement?

@JoyBlin
Copy link

JoyBlin commented Jul 22, 2024

Could you please guide me on where to find the code related to this specific feature?

Your help would be greatly appreciated.

Thanks,

Joy

@joylin2024
Copy link
Author

Hi. Thank you for your prompt response. Unfortunately, I couldn't find the answer in the references you provided. How can I implement a feature where the host can share their screen while providing an interactive window for guests on the meeting stage?

@ChetanSharma-msft
Copy link
Collaborator

Hello @JoyBlin - Sorry for the inconvenience.
We will check with the engineering team whether this feature is support or not and let you know the updates.

@joylin2024
Copy link
Author

Thanks for checking with the engineering team. Looking forward to the updates.

@ChetanSharma-msft
Copy link
Collaborator

We will let you know once we get inputs from engineering team.

@ChetanSharma-msft
Copy link
Collaborator

ChetanSharma-msft commented Jul 29, 2024

Hello @JoyBlin - Sorry for delay in response.
This functionality is not available as a supported scenario in the documentation, So, we are actively checking with engineering team on priority and let you know once we get any confirmation.

Thanks for your patience!

@Nivedipa-MSFT
Copy link

Nivedipa-MSFT commented Jul 30, 2024

@JoyBlin - We got an update from engineering team saying that sharing stage and teams screen sharing side by side simultaneously is not possible. To achieve your requirements, we recommend you give your feedback in
Teams Feedback Portal.
.

image

If you don't mind having the interactive experience in the sidepanel, you can have both the screen sharing and interactive abilities concurrently. An example of this can be seen for the Polls app, in which the meeting participant can interact with the sidepanel, while seeing the video stream of the presenter who's presenting their view of Polls.

Presenter:

image

Meeting participant:

image

Please let us know if you have any further query here?

@Prasad-MSFT Prasad-MSFT added the needs-author-feedback Needs more info from the customer. label Jul 30, 2024
@joylin2024
Copy link
Author

Thank you for the update and for providing an alternative solution.

I understand that sharing the stage and screen simultaneously is not possible at the moment. I will certainly give my feedback in the Teams Feedback Portal as recommended.

Regarding the interactive experience in the side panel, that sounds like a viable workaround. I will explore this option further. Could you please provide example code or additional guidance on how to implement this solution?

If I have any further queries or need additional assistance, I will reach out.

Thank you again for your help.

Best regards,
Joy

@ChetanSharma-msft
Copy link
Collaborator

Hello @JoyBlin - Please share your valuable feedback for us: Microsoft Teams Developer Community Response Feedback

Also, we will be closing this issue.
Please feel free to reopen it or raise another issue.

@joylin2024
Copy link
Author

joylin2024 commented Aug 3, 2024

Sharing the stage and screen simultaneously is possible, similar to what I've seen in other applications. I'm interested in learning how to code this functionality. Could you please check with the engineering team for more details?

I look forward to your reply.
Thanks,
Joy

@ChetanSharma-msft
Copy link
Collaborator

Hello @JoyBlin - Could you please share more details about Teams applications (1st party or 3rd party apps) where you have experienced this functionality (Sharing the stage and screen simultaneously)?

The engineering team already confirmed that this is not supported but still we will check on it once you share the above information.

@ChetanSharma-msft ChetanSharma-msft added the needs-author-feedback Needs more info from the customer. label Aug 4, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot removed the needs-author-feedback Needs more info from the customer. label Aug 4, 2024
@ChetanSharma-msft
Copy link
Collaborator

Hello @joylin2024 - Thanks for your inputs.
I will check with the engineering team and let you know the updates.

@joylin2024
Copy link
Author

Thank you! I'm eager to hear your updates soon.

@Nivedipa-MSFT
Copy link

Nivedipa-MSFT commented Aug 7, 2024

@JoyBlin -

As said by engineering team, the functionality to simultaneously screen share and share to stage is implemented by Mentimeter team in their own web iframe. They are only using share to stage capability.
Share to stage functionality is already documented here: https://learn.microsoft.com/en-us/microsoftteams/platform/apps-in-teams-meetings/build-apps-for-teams-meeting-stage?tabs=desktop%2Capp-content%2Cshare-app-content#share-to-stage.

I believe there are two options forward:

You can use meeting sidepanel for interactivity and stage for screen sharing.
Ref Doc: https://learn.microsoft.com/en-us/microsoftteams/platform/apps-in-teams-meetings/build-apps-for-teams-meeting-stage?tabs=desktop%2Capp-content%2Cshare-app-content#screen-share-content-to-meetings

The implementation of meeting sidepanel is documented here: https://learn.microsoft.com/en-us/microsoftteams/platform/apps-in-teams-meetings/build-tabs-for-meeting?branch=add-apps-in-meetings&tabs=desktop%2Cmeeting-chat-view-desktop%2Cmeeting-side-panel%2Cmeeting-stage-view-desktop%2Cchannel-meeting-desktop#configure-tab-app-for-a-meeting

Code sample here for meeting sidepanel: https://learn.microsoft.com/en-us/microsoftteams/platform/apps-in-teams-meetings/build-tabs-for-meeting?branch=add-apps-in-meetings&tabs=desktop%2Cmeeting-chat-view-desktop%2Cmeeting-side-panel%2Cmeeting-stage-view-desktop%2Cchannel-meeting-desktop#code-sample

And the implementation of screen sharing to stage with code sample is documented here: https://learn.microsoft.com/en-us/microsoftteams/platform/apps-in-teams-meetings/build-apps-for-teams-meeting-stage?tabs=desktop%2Capp-content%2Cshare-app-content#screen-share-content-to-meetings

Please let us know if you have any other query here.

@joylin2024
Copy link
Author

joylin2024 commented Aug 9, 2024

On the guest side, I encountered the following error:
Screenshot 2024-08-09 091748
Screenshot 2024-08-09 091825
Screenshot 2024-08-09 091847

Thanks,
Joy

@Nivedipa-MSFT
Copy link

@joylin2024 - We will test this and update you soon.

@joylin2024
Copy link
Author

Great. Thanks!

@Nivedipa-MSFT
Copy link

@joylin2024 - Could you let us know which platform you are testing this on (web, desktop, or mobile) and also provide the OS details? Additionally, are you using classic Teams or the new Teams? In the meantime, we are also trying this out.

@Nivedipa-MSFT
Copy link

@joylin2024 - Could you please refer below sample for SharingProtocol.ScreenShare.
Microsoft-Teams-Samples/samples/meetings-stage-view/csharp at main · OfficeDev/Microsoft-Teams-Samples (github.com)

We have tested this sample but getting below error.
image

We have raised an issue for this: OfficeDev/Microsoft-Teams-Samples#1367

@joylin2024
Copy link
Author

I am currently testing this on the web platform with Windows 11 Pro, version 23H2. I’m using the new Teams for this implementation. I appreciate you looking into this in the meantime!

@joylin2024
Copy link
Author

Hi, I'm having trouble defining the host in my code. I tried using the snippet below, but it's not working as expected. Could you please help me figure out what's wrong?

app.getContext().then((context) => {
let isHost = false;
// Check if the user is the meeting organizer
if (context.meeting.role === meeting.MeetingRole.Organizer) {
isHost = true;
}
})

Thanks,
Joy Lin

@ChetanSharma-msft
Copy link
Collaborator

@joylin2024
Copy link
Author

joylin2024 commented Aug 14, 2024

Hi, sorry, I am using react.js, so I don't know how to test the C# code.
Can we display different appContentUrls on the meeting stage based on the user's role, such as whether they are an attendee or not? If so, could you provide sample code for this?

var appContentUrl =""
meeting.shareAppContentToStage((err, result) => {
if (result) {
// Handle success
console.log("Content shared successfully:", result);
}
if (err) {
// Handle error
console.error("Error sharing content to stage:", err);
}
}, appContentUrl);

@Nivedipa-MSFT
Copy link

Nivedipa-MSFT commented Aug 16, 2024

@joylin2024 - To get the meeting user role such as guest, attendee, or presenter in Microsoft Teams, you can use the Microsoft Graph API.
You need to retrieve the meeting details using the Microsoft Graph API. You can use the GET /me/onlineMeetings/{meetingId} endpoint to get the details of a specific meeting.
In the response, you will find the participants property, which contains information about the participants in the meeting. Each participant will have a role property that indicates their role in the meeting (e.g., attendee, presenter, guest).
After getting the role you can set the appContentUrl accordingly.

Refer the example from following document: https://learn.microsoft.com/en-us/graph/api/onlinemeeting-get?view=graph-rest-1.0&tabs=http#example-2-retrieve-an-online-meeting-by-meeting-id

@Prasad-MSFT Prasad-MSFT added needs-author-feedback Needs more info from the customer. and removed needs-attention labels Aug 19, 2024
@joylin2024
Copy link
Author

Hi, thank you for your assistance. I was wondering if there is an alternative method to determine whether someone is a host?

@microsoft-github-policy-service microsoft-github-policy-service bot added needs-attention and removed needs-author-feedback Needs more info from the customer. labels Aug 20, 2024
@Nivedipa-MSFT
Copy link

Nivedipa-MSFT commented Aug 21, 2024

@joylin2024 - Using Get participant API you can get the participant's role in the meeting. For example, 'Organizer' or 'Presenter' or 'Attendee'.

Please let us know if you have any other query here.

@Prasad-MSFT Prasad-MSFT added needs-author-feedback Needs more info from the customer. and removed needs-attention labels Aug 21, 2024
@joylin2024
Copy link
Author

How about LiveShareHost?

@microsoft-github-policy-service microsoft-github-policy-service bot added needs-attention and removed needs-author-feedback Needs more info from the customer. labels Aug 22, 2024
@Nivedipa-MSFT
Copy link

@joylin2024
Copy link
Author

Hi, I wanted to ask if there's a method to detect when the 'Share to Stage' button is activated so that the appContentUrl for the presenter is set to http://example.com/host, while other viewers receive http://example.com/guest as their appContentUrl?

@Nivedipa-MSFT
Copy link

@joylin2024 - We are checking this with engineering team, we will let you know once we get any input from them.

@joylin2024
Copy link
Author

I appreciate the update.

@Nivedipa-MSFT
Copy link

@joylin2024 - We received an update from the engineering team stating that this scenario is not possible. We can only broadcast a single URL to all participants in the meeting. The engineering team has recommended handling this on the app side and displaying separate UIs for different types of users.

@joylin2024
Copy link
Author

Hello, I would like to know if it's possible to embed a Microsoft Teams meeting into my website. Could you please provide some guidance on how to achieve this?

@Nivedipa-MSFT
Copy link

@joylin2024 - Embedding a Microsoft Teams meeting directly into a website is not natively supported by Microsoft Teams. However, there are alternative approaches you can consider to achieve similar functionality.

You can use the Microsoft Graph API to create the meeting.
https://learn.microsoft.com/en-us/graph/api/application-post-onlinemeetings?view=graph-rest-1.0&tabs=http

@ChetanSharma-msft ChetanSharma-msft added the needs-author-feedback Needs more info from the customer. label Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-attention needs-author-feedback Needs more info from the customer. 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

6 participants