Software Archive
Read-only legacy content
17061 Discussions

Why isn't this Iframe with WebRTC Working?

andrew_n_
Beginner
445 Views

Hi guys! I'm developing a WebRTC app.

I'd like to simply Iframe to my server. This works perfectly on the desktop version of the app.

However, the mobile doesn't work.

Can you please try adding this to your project to get it working? What am I missing?

<iframe src="https://jitsi.skyrooms.io/" width="100%" height="800px"></iframe>

0 Kudos
1 Reply
PaulF_IntelCorp
Employee
445 Views

You are building a Cordova app, which is not part of a web server nor is the code being executed from withing the trust domain of a specific server (because the pages are not being "served" by a trusted server), your code is being read and executed from file:/// on the device. What you are trying to do is generally not recommended as the way to build a Cordova app (see https://cordova.apache.org/docs/en/latest/guide/next/).

If you want to open a window into the builtin browser on the mobile device, try using the inAppBrowser plugin, rather than an iframe. See the docs here > https://github.com/apache/cordova-plugin-inappbrowser <

0 Kudos
Reply