EricssonResearch / bowser

A WebRTC browser for iOS developed in the open
BSD 2-Clause "Simplified" License
208 stars 65 forks source link

If in a frame or iframe issues #92

Open suoc opened 7 years ago

suoc commented 7 years ago

in iframe window obj,don't have any rtc api...............

suoc commented 7 years ago

Anybody alse knows this issue, help me please...

superdump commented 7 years ago

There is code in openwebrtc-ios-sdk that injects some simple JavaScript into the WebView which in turn makes an XHR request to a local http server that serves some more JavaScript that contains the WebRTC API implementation.

I would guess that an iframe has a separate JavaScript context and so this mechanism does not support iframes. I'm not sure how the WKWebView APIs work as to whether we could also support iframes.

@stefanalund @pererikb @Rugvip - any ideas?

choli commented 7 years ago

Is there any news about this?