Pārlūkot izejas kodu

Merge pull request #367 from bgrozev/cleanup

cleanup: Renames a function, adds documentation.
dev1
Дамян Минков 8 gadus atpakaļ
vecāks
revīzija
fc8773833d
2 mainītis faili ar 7 papildinājumiem un 3 dzēšanām
  1. 1
    1
      JitsiConference.js
  2. 6
    2
      modules/RTC/RTC.js

+ 1
- 1
JitsiConference.js Parādīt failu

897
         GlobalOnErrorHandler.callErrorHandler(error);
897
         GlobalOnErrorHandler.callErrorHandler(error);
898
     }
898
     }
899
 
899
 
900
-    this.rtc.onIncommingCall(jingleSession);
900
+    this.rtc.initializeDataChannels(jingleSession.peerconnection);
901
     // Add local Tracks to the ChatRoom
901
     // Add local Tracks to the ChatRoom
902
     this.rtc.localTracks.forEach(function(localTrack) {
902
     this.rtc.localTracks.forEach(function(localTrack) {
903
         var ssrcInfo = null;
903
         var ssrcInfo = null;

+ 6
- 2
modules/RTC/RTC.js Parādīt failu

93
         });
93
         });
94
     }
94
     }
95
 
95
 
96
-    onIncommingCall (event) {
96
+    /**
97
+     * Initializes the data channels of this instance.
98
+     * @param peerconnection the associated PeerConnection.
99
+     */
100
+    initializeDataChannels (peerconnection) {
97
         if(this.options.config.openSctp) {
101
         if(this.options.config.openSctp) {
98
-            this.dataChannels = new DataChannels(event.peerconnection,
102
+            this.dataChannels = new DataChannels(peerconnection,
99
                 this.eventEmitter);
103
                 this.eventEmitter);
100
             this._dataChannelOpenListener = () => {
104
             this._dataChannelOpenListener = () => {
101
                 // mark that dataChannel is opened
105
                 // mark that dataChannel is opened

Notiek ielāde…
Atcelt
Saglabāt