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...
marekcis
Feb 02, 2022Copper Contributor
First 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.
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-MSFT
Microsoft
Feb 04, 2022marekcis - Could you please verify if you have required pre-requisites and given mentioned permissions in your application.
Meeting apps API references - Teams | Microsoft Docs
To use the shareAppContentToStage API, you have to obtain the RSC permissions. In the app manifest, configure the authorization property, and the name and type in the resourceSpecific field. 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?- marekcisFeb 10, 2022Copper ContributorThanks for your responses, I will give it a shot at the start of next week 🙂