Allow screen capture without prior user gesture
- Policy ID
- ScreenCaptureWithoutGestureAllowedForOrigins
- Scope
- Computer Configuration, User Configuration
- Supported on
- Microsoft Edge version 123, Windows 7 or later
- Source
- Microsoft Edge Policy Templates (version 155.0.4283.45)
- Category
- Microsoft Edge
Description
For security reasons, the
getDisplayMedia() web API requires
a prior user gesture ("transient activation") to be called or the API
fails.
When this policy is configured, admins can specify origins on which this API
can be called without prior user gesture.
For detailed information on valid url patterns, see
https://go.microsoft.com/fwlink/?linkid=2095322. Note: * isn't an accepted
value for this policy.
If this policy isn't configured, all origins require a prior user gesture to
call this API.
Example value:
https://www.example.com
[*.]example.edu
Options
Registry
ComputerHKEY_LOCAL_MACHINE
HKLM\Software\Policies\Microsoft\Edge\ScreenCaptureWithoutGestureAllowedForOrigins View registry values
- (list values)REG_SZ
UserHKEY_CURRENT_USER
HKCU\Software\Policies\Microsoft\Edge\ScreenCaptureWithoutGestureAllowedForOrigins View registry values
- (list values)REG_SZ