|
|
@@ -14,7 +14,7 @@ export default class JingleSession {
|
|
14
|
14
|
/**
|
|
15
|
15
|
* Creates new <tt>JingleSession</tt>.
|
|
16
|
16
|
* @param {string} sid the Jingle session identifier
|
|
17
|
|
- * @param {string} me our JID
|
|
|
17
|
+ * @param {string} localJid our JID
|
|
18
|
18
|
* @param {string} peerjid the JID of the remote peer
|
|
19
|
19
|
* @param {Strophe.Connection} connection the XMPP connection
|
|
20
|
20
|
* @param {Object} media_constraints the media constraints object passed to
|
|
|
@@ -22,9 +22,10 @@ export default class JingleSession {
|
|
22
|
22
|
* @param {Object} ice_config the ICE servers config object as defined by
|
|
23
|
23
|
* the WebRTC. Passed to the PeerConnection's constructor.
|
|
24
|
24
|
*/
|
|
25
|
|
- constructor(sid, me, peerjid, connection, media_constraints, ice_config) {
|
|
|
25
|
+ constructor(sid,
|
|
|
26
|
+ localJid, peerjid, connection, media_constraints, ice_config) {
|
|
26
|
27
|
this.sid = sid;
|
|
27
|
|
- this.me = me;
|
|
|
28
|
+ this.localJid = localJid;
|
|
28
|
29
|
this.peerjid = peerjid;
|
|
29
|
30
|
this.connection = connection;
|
|
30
|
31
|
this.media_constraints = media_constraints;
|
|
|
@@ -79,8 +80,8 @@ export default class JingleSession {
|
|
79
|
80
|
this.room = room;
|
|
80
|
81
|
this.rtc = rtc;
|
|
81
|
82
|
this.state = JingleSessionState.PENDING;
|
|
82
|
|
- this.initiator = isInitiator ? this.me : this.peerjid;
|
|
83
|
|
- this.responder = !isInitiator ? this.me : this.peerjid;
|
|
|
83
|
+ this.initiator = isInitiator ? this.localJid : this.peerjid;
|
|
|
84
|
+ this.responder = !isInitiator ? this.localJid : this.peerjid;
|
|
84
|
85
|
this.doInitialize();
|
|
85
|
86
|
}
|
|
86
|
87
|
|