Requesting audio using the getUserMedia API in a webview immediately rejects. Only requesting video shows a permission dialog as expected. It’s the same result in PPRO and AEFT.
await navigator.mediaDevices.getUserMedia({
video: true,
// Requesting audio does not trigger a permission
// request and immediately rejects
audio: true,
})
It throws the following error (which usually gets thrown when a user clicks “Don’t allow” in the permission dialog).
Unhandled Promise Rejection: NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.
I’ve confirmed that the system has a functioning audio device available.