I am currently try to find a viable option to incorporate webRtc into an Android & ios app using Cordova /phonegap/ionic and I have tried getting the following examples to work but till recently I have had no luck:
https://github.com/songz/cordova-plugin-opentok
https://github.com/gomobile/sample-webrtc-video-client
https://github.com/alongubkin/phonertc (phoneRtc was an issue only because it had no working examples and I found the docs lacking) I was able to get the 1st two deployed correctly with no issue but every time I did so I could not get a video feed from my camera, all I got was the following:
OpenTok plugin:
Intel XDK sample-webrtc-video-client:
When I tried to Debug the OpenTok app I the following error:
OT.exception :: title: Connection Failed (1013) msg: Publisher PeerConnection Error: The video stream failed to connect. Please notify the site owner if this continues to happen.
and when I tried to debug the Intel XDK example It prompeted me to install Intel App Preview
and when it relaunched the sample App to debug it prompted me to update Intel App Preview Crosswalk
and then the App worked...
What's confusing me is now the OpenTok app also works....Can someone shed some light on this? did this install some global library or something? I have tried googling this but cannot seem to find an explaination that helps me to understand how or why this happens as I saw no mention of Crosswalk in the OpenTok application.