Search code examples
c++qtwebkitqtwebkitwebrtc

Insert web frame with WebRTC support in own application


We are about to extend an existing application based on Qt 5 to support video/audio-chat using WebRTC.

We already tried to use the Qt 5.0.2 built-in QtWebkit widget without success as getUserMedia() seems to be invisible for JavaScript or is not implemented in general. After further research we found that WebRTC is currently not supported by the latest version of QtWebkit. For example the necessary libraries like libjingle are not included.

In support of this we found the following on the internet:

Has anyone figured out how to integrate video/audio-chat using WebRTC into your own application?


Solution

  • Qt is currently switching from webkit to chromium. As far as I know this new engine will support webrtc from the start. This new project is called QtWebEngine. You can get the current state from here. I already compiled it and it pulls in libjingle and wraps it. Perhaps you should grab the source of QtWebEngine and test with this.