Skip to content

what may make GraphicsCaptureSession.IsSupported() return false? #586

Closed

Description

@Airborne76

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.

Activity

  1. eliotcowley commented on May 18, 2018

    @eliotcowley

    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.

  2. eliotcowley commented on May 18, 2018

    @eliotcowley

    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.

  3. ychsue commented on May 19, 2018

    @ychsue

    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.

  4. Airborne76 commented on May 19, 2018

    @Airborne76
    Author

    Hi Eliot Cowley (@eliotcowley) Got it. My vseion is Windows10 Home. Thanks for your information.

  5. ychsue commented on May 19, 2018

    @ychsue

    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.

  6. eliotcowley commented on May 21, 2018

    @eliotcowley

    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!

  7. added a commit that references this issue on Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions