You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
what may make GraphicsCaptureSession.IsSupported() return false? #586
I added graphicsCapture in Package.appxmanifest, but GraphicsCaptureSession.IsSupported() still return false。 I packaged my application and installed it on other devices but it returned true. My system version is 17134.48, Visual Studio version is 15.7.1, DirectX12 installed, and other screen capture application like OBS run smoothly. So which may cause GraphicsCaptureSession.IsSupported() return false?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
ID: f607a1db-43b3-bf1c-c6d1-6283c1280743
Version Independent ID: c1c72175-3e9c-59f6-e30e-7d6f821c5876
Hi Airborne (@Airborne76), which version of Windows 10 are you using for development? Unfortunately, the screen capture APIs currently only work on Windows 10 Pro/Enterprise. However, in a future update, they should also work on Windows 10 Home.
This is a very nice functionality so that I added it to my App once 1803 is released.
However, I am facing a problem that my App will crash when the user navigates to the usercontrol with the namespace Windows.Graphics.Capture when their version is lower than 1803.
Now, it is not the problem of GraphicsCaptureSession.IsSupported() but lack of the namespace for the older version of Windows 10 and crashing my App.
Please help me to solve this problem. Thanks a lot.
Hi Young-Chung Hsue (@ychsue), because the Windows.Graphics.Capture APIs require Windows 10, version 1803, they will not work on a device that has a Windows 10 build that is lower than that. The method you described should work, however. Check out this article for more info on writing code that adapts to the device's Windows 10 version.
Also Airborne (@Airborne76), just to follow up, I've added a note to the doc that the screen capture APIs require Windows 10 Pro/Enterprise.
Activity
eliotcowley commentedon May 18, 2018
Hi Airborne (@Airborne76), sorry to hear that you're having issues. I've reached out to the feature team and will get back to you shortly.
eliotcowley commentedon May 18, 2018
Hi Airborne (@Airborne76), which version of Windows 10 are you using for development? Unfortunately, the screen capture APIs currently only work on Windows 10 Pro/Enterprise. However, in a future update, they should also work on Windows 10 Home.
ychsue commentedon May 19, 2018
This is a very nice functionality so that I added it to my App once 1803 is released.
However, I am facing a problem that my App will crash when the user navigates to the usercontrol with the namespace Windows.Graphics.Capture when their version is lower than 1803.
Now, it is not the problem of GraphicsCaptureSession.IsSupported() but lack of the namespace for the older version of Windows 10 and crashing my App.
Please help me to solve this problem. Thanks a lot.
Airborne76 commentedon May 19, 2018
Hi Eliot Cowley (@eliotcowley) Got it. My vseion is Windows10 Home. Thanks for your information.
ychsue commentedon May 19, 2018
I'm not sure whether the method shown below is work.
I have moved all the part related to the namespace Windows.Graphics.Capture into a provider class and then use
IsSupported = ApiInformation.IsTypePresent("Windows.Graphics.Capture.GraphicsCaptureItem");
to check whether I should create that provider object for this screen capture picker.
Although it works on my PC, I am not sure if it worked on an older version of Windows 10.
eliotcowley commentedon May 21, 2018
Hi Young-Chung Hsue (@ychsue), because the Windows.Graphics.Capture APIs require Windows 10, version 1803, they will not work on a device that has a Windows 10 build that is lower than that. The method you described should work, however. Check out this article for more info on writing code that adapts to the device's Windows 10 version.
Also Airborne (@Airborne76), just to follow up, I've added a note to the doc that the screen capture APIs require Windows 10 Pro/Enterprise.
Thanks!
Merge pull request #586 from MicrosoftDocs/Edits-to-indicate-that-the…
Merge release-1.16 into main (#586)
Merge main > Live (#599)