navigator.mediaDevices.getDisplayMedia for screen sharing not work in MS Teams Desktop

%3CLINGO-SUB%20id%3D%22lingo-sub-1804572%22%20slang%3D%22en-US%22%3Enavigator.mediaDevices.getDisplayMedia%20for%20screen%20sharing%20not%20work%20in%20MS%20Teams%20Desktop%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1804572%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%20with%20my%20team%20we%20have%20developed%20an%20MS-Teams%20app%20which%20will%20need%20to%20be%20published%20on%20the%20store%20office.%20The%20app%20is%20developed%20in%20the%20form%20of%20Tabs%20and%20refers%20to%20our%20company%20portal%2C%20through%20which%20it%20is%20possible%20to%20make%20video%20calls%20and%20screen%20sharing%20between%20users%20connected%20to%20the%20call.%20The%20problem%20lies%20in%20the%20fact%20that%20within%20the%20MS%20Teams%20product%2C%20in%20the%20desktop%20version%2C%20it%20is%20not%20possible%20to%20access%20the%20%3CSTRONG%3Enavigator.user-agent%3C%2FSTRONG%3E%20to%20set%20up%20screen%20sharing%20as%20it%20happens%20from%20a%20normal%20video%20call%20made%20from%20a%20browser.%20Have%20you%20ever%20encountered%20such%20a%20problem%3F%20Does%20anyone%20have%20any%20solution%20to%20the%20problem%3F%20Is%20it%20necessary%20to%20configure%20microsoft%20graph%3F%20How%20is%20possible%20to%20replicate%20the%20screen%20sharing%20functionality%20in%20an%20app%20inside%20MS-Teams%20%3F%3CBR%20%2F%3EThanks%20in%20advance%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1804572%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ECalling%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDevices%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMeetings%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESettings%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1811355%22%20slang%3D%22en-US%22%3ERe%3A%20navigator.mediaDevices.getDisplayMedia%20for%20screen%20sharing%20not%20work%20in%20MS%20Teams%20Desktop%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1811355%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F840962%22%20target%3D%22_blank%22%3E%40fdepedis%3C%2FA%3E%26nbsp%3B-%20Currently%20teams%20tab%20supports%20only%20Camera%2C%20Microphone%2C%20Location%2C%20Notification.%20This%20is%20by%20design.%20Please%20check%20this%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Ftabs%2Fhow-to%2Fnative-device-permissions%3Ftabs%3Ddesktop%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Edocs%3C%2FA%3E%20for%20more%20info.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2048136%22%20slang%3D%22en-US%22%3ERe%3A%20navigator.mediaDevices.getDisplayMedia%20for%20screen%20sharing%20not%20work%20in%20MS%20Teams%20Desktop%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2048136%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F590590%22%20target%3D%22_blank%22%3E%40Nikitha-MSFT%3C%2FA%3E%26nbsp%3BHello%2C%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20encountering%20the%20same%20problem.%20Unfortunately%2C%20the%20link%20of%20the%20docs%20that%20you%20provided%20is%20broken.%20Could%20you%20please%20update%20it%3F%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EGeraud.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Established Member

Hi all, with my team we have developed an MS-Teams app which will need to be published on the store office. The app is developed in the form of Tabs and refers to our company portal, through which it is possible to make video calls and screen sharing between users connected to the call. The problem lies in the fact that within the MS Teams product, in the desktop version, it is not possible to access the navigator.user-agent to set up screen sharing as it happens from a normal video call made from a browser. Have you ever encountered such a problem? Does anyone have any solution to the problem? Is it necessary to configure microsoft graph? How is possible to replicate the screen sharing functionality in an app inside MS-Teams ?
Thanks in advance

3 Replies

@fdepedis - Currently teams tab supports only Camera, Microphone, Location, Notification. This is by design. Please check this docs for more info.

@Nikitha-MSFT Hello, 

I'm encountering the same problem. Unfortunately, the link of the docs that you provided is broken. Could you please update it?

Thanks,

Geraud.

@geraudwilling Currently teams does not support for screen recording via the getDisplayMedia API. Could you please check this docs