Search code examples
google-chrome-extensionscreen-capture

is there a way to access desktop application windows using chrome extension? [chrome.desktopcapture.choosedesktopmedia]


Current google chrome API is serving only to access browser windows and tabs, and for the desktop app windows, there is an api chrome.desktopcapture.choosedesktopmedia ['Window'], which prompts the user to choose or select one from a list.

enter image description here

Is there a way to bypass the user prompt for choosing desktop media, and handle through code to get all desktop app windows as objects?


Solution

  • I doubt this is something you will ever be able to use -- it is SUPPOSED to have a prompt according to the documentation. It would be dangerous to provide that without warning the user since it isn't part of Chrome, but an extension, which is able to capture ANYTHING every time it is used.

    This permission triggers a warning. - part of Documentation on Desktop Window capturing in Chrome API