Revision: d50d7132c7eb
Author: Strullu <[email protected]>
Date: Tue Jan 8 07:12:50 2013
Log: RTCPeerConnection API modification to run with Google Chrome Dev
channel (25.x)
http://code.google.com/p/jain-sip/source/detail?r=d50d7132c7eb&repo=javascript
Modified:
/examples/MobicentsWebRTCPhone/src/main/webapp/index.jsp
/examples/MobicentsWebRTCPhone/src/main/webapp/js/MobicentsWebRTCPhone.js
=======================================
--- /examples/MobicentsWebRTCPhone/src/main/webapp/index.jsp Fri Oct 26
03:32:01 2012
+++ /examples/MobicentsWebRTCPhone/src/main/webapp/index.jsp Tue Jan 8
07:12:50 2013
@@ -154,7 +154,7 @@
<script src="js/MobicentsWebRTCPhone.js" type="text/javascript"
</script>
<script type='text/javascript'>
var mobicentsWebRTCPhone=null;
- var defaultSipWsUrl="ws://10.193.7.29:5082"
+ var defaultSipWsUrl="ws://10.193.31.142:5082"
var defaultStunServer="";
var defaultSipDomain="mobicents.com";
var defaultSipDisplayName="TeleStax";
=======================================
---
/examples/MobicentsWebRTCPhone/src/main/webapp/js/MobicentsWebRTCPhone.js
Wed Oct 31 03:21:41 2012
+++
/examples/MobicentsWebRTCPhone/src/main/webapp/js/MobicentsWebRTCPhone.js
Tue Jan 8 07:12:50 2013
@@ -561,10 +561,7 @@
this.callee=to;
hideCallButton();
this.createPeerConnection();
-
this.peerConnection.addStream(this.localAudioVideoMediaStream, {
- has_audio: true,
- has_video: true
- });
+
this.peerConnection.addStream(this.localAudioVideoMediaStream);
var application=this;
this.peerConnection.createOffer(function(offer) {
application.onPeerConnectionCreateOfferSuccessCallback(offer);
@@ -1262,7 +1259,6 @@
console.warn("SimpleWebRtcSipPhone:onPeerConnectionCreateOfferErrorCallback():
this.peerConnection is null, bug in state machine!");
}
alert("error:"+error);
-
}
MobicentsWebRTCPhone.prototype.onPeerConnectionSetLocalDescriptionSuccessCallback
=function(){
@@ -1471,10 +1467,7 @@
{
stopRinging();
mobicentsWebRTCPhone.createPeerConnection();
-
mobicentsWebRTCPhone.peerConnection.addStream(mobicentsWebRTCPhone.localAudioVideoMediaStream,
{
- has_audio: true,
- has_video: true
- });
+
mobicentsWebRTCPhone.peerConnection.addStream(mobicentsWebRTCPhone.localAudioVideoMediaStream);
mobicentsWebRTCPhone.lastReceivedSdpOfferString =
mobicentsWebRTCPhone.jainSipInvitedReceivedRequest.getContent();
var sdpOffer = new RTCSessionDescription({
type: 'offer',