Add "display-capture" permissions for Retool and/or custom components

I tried to use getDisplayMedia within a Custom component to do a screencap of the Retool window and I am getting this error:

Error: SecurityError: Failed to execute 'getDisplayMedia' on 'MediaDevices': Access to the feature "display-capture" is disallowed by permission policy.

A little research tells me that this is a feature flag that can be enabled in an iFrame.

I also tried to do it right in a js query and got the same error.

I am developing a bug reporting widget to place onto my apps. I would like to have a screen capture function built in and getDisplayMedia seems like the slickest way to do it.

Another option is to use .downloadPage and then have the user upload the resulting PDF, but it's not as efficient.

1 Like

Yesss !!