Forum Discussion
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.json` that adds share button for the meeting owner which is really cool (and also played with Miro integration that is using this new feature).
As we'd like to share not the meeting's owner view, but another URL on our domain, I have played with `meeting.shareAppContentToStage` or `meeting.getAppContentStageSharingCapabilities` but both calls are returning error code 1000: App doesn't have sufficient permission to use this API
From SDK perspective these calls were released https://github.com/OfficeDev/microsoft-teams-library-js/releases/tag/1.11.0
What else do I need to allow in order to get this functionality running?
Thanks in advance!
Marek
5 Replies
- Nivedipa-MSFT
Microsoft
marekcis - Could you please share the sample or document which you are referring for this?
- marekcisCopper 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-MSFT
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" } ] } }