When loading from embed API, MacOs can't access camera

Hi there,

We’re having a strange issue since the previous update.
We host our Jitsi-Meet on server and we are trying to embed a room inside a web page.

This was free of issues until the last update, when things became strange:
testing the embed.

When I access the webpage (with the embed) on my MacBook Pro 2019 from Safari or Chrome, it cannot open the webcam and continuously asks for permissions (on every click i do on webcam or settings). The macbook webcam’s green led turns on and keep going but no image is displayed inside Jitsi.

This issue is not present when the MacOS client is the first to join a room or - in any conditions - when joining the room from the Jitsi server url (my.jitsi.host/room).

This is also reproducible when embedding meet.jit.si.

Here is the sample script I’m using for API embed:
const domain = 'meet.jit.si';
const options = {
roomName: 'testtestmilanitaly',
width: 1280,
height: 720,
parentNode: document.querySelector('#meet'),
};
var api = new JitsiMeetExternalAPI(domain, options)