<iframe
allow="camera;microphone"
src="https://webrtc.github.io/samples/src/content/getusermedia/gum/">
</iframe>
I’d like to have the following code snippet produce a working WebRTC based camera when build with xcode on a physical device. Instead it gives me a getUserMedia error: Not Allowed Error"
I presume the error happens because the app is being ran in a localhost scheme, and the webrtc specifications for ios require https.
This example works just fine when using ionic serve
in the browser or when compiled with Android Studio and served on an Android device. When using xcode to compile on an iPhone however, it fails with the error above.
Permissions are not the issue in the app itself, since the camera is able to be accessed by a different (non iframed) part of the application.
Any ideas are welcome.