Forum Discussion
marekcis
Feb 02, 2022Copper Contributor
Sharing app content to stage
Hi, as we are trying to get the best of Teams SDK integration, I was wondering about sharing app content to stage functionality. I played with a little bit, checked the permissions in `manifest.js...
Nivedipa-MSFT
Microsoft
Feb 02, 2022marekcis - Could you please share the sample or document which you are referring for this?
- marekcisFeb 02, 2022Copper ContributorFirst I stumbled upon on release notes in github
https://github.com/OfficeDev/microsoft-teams-library-js/releases
Then I studied public API of SDK, specifically part with Sharing:
https://github.com/OfficeDev/microsoft-teams-library-js/blob/master/src/public/sharing.ts
and meeting:
https://github.com/OfficeDev/microsoft-teams-library-js/blob/master/src/public/meeting.ts
On sharing there is `shareWebContent` that did nothing when called.
On meeting there are methods `getAppContentStageSharingCapabilities(...)` and `shareAppContentToStage(...)` that produced error 1000 when called.- Nivedipa-MSFTFeb 04, 2022
Microsoft
marekcis - Could you please verify if you have required pre-requisites and given mentioned permissions in your application.
Meeting apps API references - Teams | Microsoft DocsTo use the
shareAppContentToStageAPI, you have to obtain the RSC permissions. In the app manifest, configure theauthorizationproperty, and thenameandtypein theresourceSpecificfield. For example:JSON"authorization": { "permission": { "resourceSpecific": [ { "name": "MeetingStage.Write.Chat", "type": "Delegated" } ] } }- Nivedipa-MSFTFeb 09, 2022
Microsoft
marekcis - Could you please confirm if the above suggestion helped you in any way or are you still facing the issue?