瀏覽代碼

Remove legacy web raise hand code

master
Bettenbuk Zoltan 6 年之前
父節點
當前提交
50d7c1521f

+ 0
- 24
modules/UI/UI.js 查看文件

175
     VideoLayout.onDisplayNameChanged(id, displayName);
175
     VideoLayout.onDisplayNameChanged(id, displayName);
176
 };
176
 };
177
 
177
 
178
-/**
179
- * Sets the "raised hand" status for a participant.
180
- *
181
- * @param {string} id - The id of the participant whose raised hand UI should
182
- * be updated.
183
- * @param {string} name - The name of the participant with the raised hand
184
- * update.
185
- * @param {boolean} raisedHandStatus - Whether the participant's hand is raised
186
- * or not.
187
- * @returns {void}
188
- */
189
-UI.setRaisedHandStatus = (id, name, raisedHandStatus) => {
190
-    VideoLayout.setRaisedHandStatus(id, raisedHandStatus);
191
-};
192
-
193
-/**
194
- * Sets the local "raised hand" status.
195
- */
196
-UI.setLocalRaisedHandStatus
197
-    = raisedHandStatus =>
198
-        VideoLayout.setRaisedHandStatus(
199
-            APP.conference.getMyUserId(),
200
-            raisedHandStatus);
201
-
202
 /**
178
 /**
203
  * Initialize conference UI.
179
  * Initialize conference UI.
204
  */
180
  */

+ 4
- 6
modules/UI/videolayout/SmallVideo.js 查看文件

840
                                     = { statsPopoverPosition }
840
                                     = { statsPopoverPosition }
841
                                 userID = { this.id } />
841
                                 userID = { this.id } />
842
                             : null }
842
                             : null }
843
-                        { this._showRaisedHand
844
-                            ? <RaisedHandIndicator
845
-                                iconSize = { iconSize }
846
-                                participantId = { this.id }
847
-                                tooltipPosition = { tooltipPosition } />
848
-                            : null }
843
+                        <RaisedHandIndicator
844
+                            iconSize = { iconSize }
845
+                            participantId = { this.id }
846
+                            tooltipPosition = { tooltipPosition } />
849
                         { this._showDominantSpeaker
847
                         { this._showDominantSpeaker
850
                             ? <DominantSpeakerIndicator
848
                             ? <DominantSpeakerIndicator
851
                                 iconSize = { iconSize }
849
                                 iconSize = { iconSize }

+ 0
- 16
modules/UI/videolayout/VideoLayout.js 查看文件

672
         }
672
         }
673
     },
673
     },
674
 
674
 
675
-    /**
676
-     * Sets the "raised hand" status for a participant identified by 'id'.
677
-     */
678
-    setRaisedHandStatus(id, raisedHandStatus) {
679
-        const video
680
-            = APP.conference.isLocalId(id)
681
-                ? localVideoThumbnail : remoteVideos[id];
682
-
683
-        if (video) {
684
-            video.showRaisedHandIndicator(raisedHandStatus);
685
-            if (raisedHandStatus) {
686
-                video.showDominantSpeakerIndicator(false);
687
-            }
688
-        }
689
-    },
690
-
691
     /**
675
     /**
692
      * On dominant speaker changed event.
676
      * On dominant speaker changed event.
693
      *
677
      *

+ 0
- 16
react/features/base/participants/middleware.js 查看文件

40
 import {
40
 import {
41
     getAvatarURLByParticipantId,
41
     getAvatarURLByParticipantId,
42
     getLocalParticipant,
42
     getLocalParticipant,
43
-    getParticipantById,
44
     getParticipantCount,
43
     getParticipantCount,
45
     getParticipantDisplayName
44
     getParticipantDisplayName
46
 } from './functions';
45
 } from './functions';
332
                     'raisedHand',
331
                     'raisedHand',
333
                     raisedHand);
332
                     raisedHand);
334
         }
333
         }
335
-
336
-        if (typeof APP === 'object') {
337
-            if (local) {
338
-                APP.UI.onLocalRaiseHandChanged(raisedHand);
339
-                APP.UI.setLocalRaisedHandStatus(raisedHand);
340
-            } else {
341
-                const remoteParticipant = getParticipantById(getState(), id);
342
-
343
-                remoteParticipant
344
-                    && APP.UI.setRaisedHandStatus(
345
-                        remoteParticipant.id,
346
-                        remoteParticipant.name,
347
-                        raisedHand);
348
-            }
349
-        }
350
     }
334
     }
351
 
335
 
352
     // Notify external listeners of potential avatarURL changes.
336
     // Notify external listeners of potential avatarURL changes.

Loading…
取消
儲存