Use Bistri WebRTC JS library in your hybrid applications. This plugin is Android / iOS compatible.
$ cordova plugin add https://github.com/bistri/cordova-plugin-bistri.git
To bring WebRTC support to webviews cordova-plugin-bistri use:
- cordova-plugin-crosswalk-webview plugin on Android platform
- cordova-plugin-iosrtc plugin on iOS platform
- Xcode >= 7.2.1
- iOS >= 9 (run on lower versions at your own risk, but don't open issues)
- cordova-ios >= 4.0.0
- No bitcode (built-in libwebrtc does not contain bitcode so you need to disable it in your Xcode project settings)
Building instructions can be found here
document.addEventListener ( 'onBistriJsApiReady', function ( event )
{
// Bistri JS library is ready to use
} ); bistriJSApi.ready ( function ()
{
bc.init ( {
appId : 'xxxxxxxxxxxxx',
appKey : 'xxxxxxxxxxxxx',
debug : true
} );
bc.signaling.bind ( 'onConnected', function ()
{
console.log ( 'Connected !' );
} );
bc.connect ();
} );visit http://developers.bistri.com/webrtc-sdk/js-library-reference for complete JS library reference