Add webRTC in webview in iOS?

Steven picture Steven · Sep 22, 2016 · Viewed 9.2k times · Source

I have created a chat but with webView. The problem is the chat has video and voice that is not supported with iOS because it does not support webRTC.

The main question is how can I easily add RTC inside webView in Swift to support iOS video and voice?

Answer

zaxy78 picture zaxy78 · Nov 2, 2017

From iOS 14.3 (Beta)

Apple is adding full support to WebRTC in WKWebView ! 🎉

Learn more here: https://webkit.org/blog/11353/mediarecorder-api/

From iOS11+

Apple has added support for WebRTC to Safari.
If you want to use WKWebView - there is only a partial support. Checkout this answer:

WebRTC Support in iOS 11 - Explained