Browse Source

Removes unused event ('InLastNChangeEvent').

dev1
damencho 8 years ago
parent
commit
7da4ab76a5

+ 0
- 3
JitsiConferenceEventManager.js View File

494
             { value: now });
494
             { value: now });
495
     });
495
     });
496
 
496
 
497
-    this.rtcForwarder.forward(RTCEvents.LASTN_CHANGED,
498
-        JitsiConferenceEvents.IN_LAST_N_CHANGED);
499
-
500
     this.rtcForwarder.forward(RTCEvents.LASTN_ENDPOINT_CHANGED,
497
     this.rtcForwarder.forward(RTCEvents.LASTN_ENDPOINT_CHANGED,
501
         JitsiConferenceEvents.LAST_N_ENDPOINTS_CHANGED);
498
         JitsiConferenceEvents.LAST_N_ENDPOINTS_CHANGED);
502
 
499
 

+ 0
- 5
JitsiConferenceEvents.js View File

83
  */
83
  */
84
 export const ENDPOINT_MESSAGE_RECEIVED = 'conference.endpoint_message_received';
84
 export const ENDPOINT_MESSAGE_RECEIVED = 'conference.endpoint_message_received';
85
 
85
 
86
-/**
87
- * You are included / excluded in somebody's last N set
88
- */
89
-export const IN_LAST_N_CHANGED = 'conference.inLastNChanged';
90
-
91
 /**
86
 /**
92
  * You are kicked from the conference.
87
  * You are kicked from the conference.
93
  */
88
  */

+ 0
- 26
modules/RTC/DataChannels.js View File

95
                     dominantSpeakerEndpoint);
95
                     dominantSpeakerEndpoint);
96
                 self.eventEmitter.emit(RTCEvents.DOMINANT_SPEAKER_CHANGED,
96
                 self.eventEmitter.emit(RTCEvents.DOMINANT_SPEAKER_CHANGED,
97
                   dominantSpeakerEndpoint);
97
                   dominantSpeakerEndpoint);
98
-            } else if (colibriClass === 'InLastNChangeEvent') {
99
-                let oldValue = obj.oldValue;
100
-                let newValue = obj.newValue;
101
-
102
-                // Make sure that oldValue and newValue are of type boolean.
103
-                let type;
104
-
105
-                if ((type = typeof oldValue) !== 'boolean') {
106
-                    if (type === 'string') {
107
-                        oldValue = oldValue === 'true';
108
-                    } else {
109
-                        oldValue = Boolean(oldValue);
110
-                    }
111
-                }
112
-                if ((type = typeof newValue) !== 'boolean') {
113
-                    if (type === 'string') {
114
-                        newValue = newValue === 'true';
115
-                    } else {
116
-                        newValue = Boolean(newValue);
117
-                    }
118
-                }
119
-
120
-                self.eventEmitter.emit(
121
-                    RTCEvents.LASTN_CHANGED,
122
-                    oldValue,
123
-                    newValue);
124
             } else if (colibriClass === 'LastNEndpointsChangeEvent') {
98
             } else if (colibriClass === 'LastNEndpointsChangeEvent') {
125
                 // The new/latest list of last-n endpoint IDs.
99
                 // The new/latest list of last-n endpoint IDs.
126
                 const lastNEndpoints = obj.lastNEndpoints;
100
                 const lastNEndpoints = obj.lastNEndpoints;

+ 0
- 1
service/RTC/RTCEvents.js View File

12
     RTC_READY: 'rtc.ready',
12
     RTC_READY: 'rtc.ready',
13
     DATA_CHANNEL_OPEN: 'rtc.data_channel_open',
13
     DATA_CHANNEL_OPEN: 'rtc.data_channel_open',
14
     ENDPOINT_CONN_STATUS_CHANGED: 'rtc.endpoint_conn_status_changed',
14
     ENDPOINT_CONN_STATUS_CHANGED: 'rtc.endpoint_conn_status_changed',
15
-    LASTN_CHANGED: 'rtc.lastn_changed',
16
     DOMINANT_SPEAKER_CHANGED: 'rtc.dominant_speaker_changed',
15
     DOMINANT_SPEAKER_CHANGED: 'rtc.dominant_speaker_changed',
17
     LASTN_ENDPOINT_CHANGED: 'rtc.lastn_endpoint_changed',
16
     LASTN_ENDPOINT_CHANGED: 'rtc.lastn_endpoint_changed',
18
     AVAILABLE_DEVICES_CHANGED: 'rtc.available_devices_changed',
17
     AVAILABLE_DEVICES_CHANGED: 'rtc.available_devices_changed',

Loading…
Cancel
Save