Software Archive
Read-only legacy content
17061 Discussions

Ios and webrtc plugin

Flemming_P_
Beginner
796 Views

Hi here

Has anyone had luck with build for ios with an webrtc plugin ?

Regards

 

 

0 Kudos
8 Replies
Elroy_A_Intel
Employee
796 Views

WebRTC is not supported in any version of iOS including the latest version 9.3.

0 Kudos
Flemming_P_
Beginner
796 Views

Thanks  .. but that is why I need a plugin as from cordova

http://cordova.apache.org/plugins/?q=webrtc&platforms=cordova-ios

some off these I can load in xdk but they fail on build

R/Flemming

 

0 Kudos
Zhen_Z_Intel
Employee
796 Views

Hi Flemming, you could use this Cordova plugin which uses SIP.js with the PhoneRTC plugin to make WebRTC calls over the internet. Please access from following link: https://github.com/onsip/onsip-cordova

Hope this document could help you. https://software.intel.com/en-us/xdk/article/webrtc-client-on-mobile-server-implementation

Or you can add the Sip.js into Bower Packages to use sip tack for WebRTC. The Sip is an application layer control protocol for WebRTC. Learn more about Sip.js from http://sipjs.com/

 

0 Kudos
Flemming_P_
Beginner
796 Views

THANKS  FIONA !!

Since Im not too much into codes Im VERY interrested in trying out your Idear ..

BUT what is Bower Packages ?

Could you give a little step-guide in xdk how to do this, please

 

REGARDS

Flemming

 

 

 

0 Kudos
Zhen_Z_Intel
Employee
796 Views

Here is the doc about the Bower Package. Hope that helps. https://software.intel.com/en-us/xdk/docs/bower-packages-intel-xdk

0 Kudos
Flemming_P_
Beginner
796 Views

Thanks .. will give it a go ..

BTW.. How do I delete old p12 certificates

 

REGARDS

 

0 Kudos
Flemming_P_
Beginner
796 Views

Hi Fiona

My build now includes the sip.js fine 

BUT I cant figure out where to call the js in my project-files

http://sipjs.com/guides/mobile/cordova/

I see here that this somehow has to be included

// Use plugin version of SIP.js
var SIP = cordova.require("com.onsip.cordova.Sipjs");

// Use plugin version of MediaHandler
var PhoneRTCMediaHandler = cordova.require("com.onsip.cordova.SipjsMediaHandler")(SIP);

// Set my UA to use the MediaHandler
var ua = new SIP.UA({
  mediaHandlerFactory: PhoneRTCMediaHandler
});

 

Is it config xml or some where else .. ?

REGARDS

 

 

 

 

 

0 Kudos
Zhen_Z_Intel
Employee
796 Views

Hi Flemming, that is the Javascript code not XML settings. The purpose of these lines of code is to set the app to use the plugin installed SIP.js and MediaHandler. This usage is for cordova with ios through using WebRTC coomunication, but in a web browser app, there is no need to set the plugin version of SIP.js. There's an example about realizing video chat on IOS app: https://github.com/onsip/onsip-cordova 

Hope it could help you.

0 Kudos
Reply