Iframe cam and mic with API

Built a webapp for my wife’s PHd research.
It is intended to be proof of concept for remote medicine.
As it is only POC I do not want to work with https for now (it’s self hosted anyway).
Once the webapp loads it has an API call to build an iframe (javascript):

function BuildPage(){
...
        const domain = 'meet.jit.si';
        const options = {
            roomName: 'SomeRoomName',
            parentNode: document.querySelector('#video_chat')
        };
        api = new JitsiMeetExternalAPI(domain, options);
...

However, for some reason I can’t get the iframe to capture camera or mic.
I can ope the frame in a different tab and get the mic and camera to work (just for so you know)
Can someone help with that?

You need https for Webrtc