I need to access my angular WebRTC app from my mobile device on the localnetwork. When I run ng serve on 0.0.0.0 then I can access the app from my host browser(with no errors) but not from my mobile device. So I run ng serve on my private ip address from my laptop host machine, that my mobile phone can access the app. The problem i face is that I get this error
TypeError: Cannot read properties of undefined (reading 'getUserMedia')
when i try to access the app via my private ip address in the browser. And it doesn t matter if I access it from my laptop or mobile phone.
await navigator.mediaDevices.getUserMedia(constraints)
So this is the line which causes problems.
So what i really dont understand is why getUserMedia is undefined when I run/access the app with my private ip address. Everything works fine on localhost or 0.0.0.0(but only on the host machine)