S
S
Sergey Suntsev2017-09-11 13:40:13
WebRTC
Sergey Suntsev, 2017-09-11 13:40:13

What are the problems with webrtc in iframe?

I'm running a corporate portal on react.
I found a separate client-dialer for an asterisk - janus. Because janus is quite antediluvian made, and there jquery is all around, instead of rewriting and washing down a separate react module, I decided to insert an iframe.

Separately, everything works fine , but when I try to insert an iframe into the React application, the chrome console swears at the WebRtc plugin and, accordingly, the call does not go.

siptest.js:270 WebRTC error... {code: undefined, name: "TypeError", message: "Cannot assign to read only property 'iceServers' of object '#<Object>'"}


The iframe and the app itself use https. (True, the certificate is self-signed in the iframe)

The domains in the iframe and the react application are the same, only the folders are different. The iframe asks for permission to use the phone.

Before that, I didn’t work with webrtc, so I want to know if there are any other restrictions on using webrtc inside an iframe that I might not know about?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Suntsev, 2017-10-24
@GreyCrew

adblock, it was because of him that this trouble arose, while it is strange that not disabling it, not adding it to the list, ignoring it did not help, only deleting it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question