浏览代码

Changes the raise hand event name to fit better the action

j8
yanas 8 年前
父节点
当前提交
8b7bdb4957
共有 4 个文件被更改,包括 5 次插入5 次删除
  1. 1
    1
      conference.js
  2. 2
    2
      modules/UI/UI.js
  3. 1
    1
      modules/UI/toolbars/Toolbar.js
  4. 1
    1
      service/UI/UIEvents.js

+ 1
- 1
conference.js 查看文件

1648
     setRaisedHand(raisedHand) {
1648
     setRaisedHand(raisedHand) {
1649
         if (raisedHand !== this.isHandRaised)
1649
         if (raisedHand !== this.isHandRaised)
1650
         {
1650
         {
1651
-            APP.UI.onRaiseHandChanged(raisedHand);
1651
+            APP.UI.onLocalRaiseHandChanged(raisedHand);
1652
 
1652
 
1653
             this.isHandRaised = raisedHand;
1653
             this.isHandRaised = raisedHand;
1654
             // Advertise the updated status
1654
             // Advertise the updated status

+ 2
- 2
modules/UI/UI.js 查看文件

1217
  * @param {boolean} isRaisedHand indicates the current state of the
1217
  * @param {boolean} isRaisedHand indicates the current state of the
1218
  * "raised hand"
1218
  * "raised hand"
1219
  */
1219
  */
1220
-UI.onRaiseHandChanged = function (isRaisedHand) {
1221
-    eventEmitter.emit(UIEvents.RAISE_HAND_CHANGED, isRaisedHand);
1220
+UI.onLocalRaiseHandChanged = function (isRaisedHand) {
1221
+    eventEmitter.emit(UIEvents.LOCAL_RAISE_HAND_CHANGED, isRaisedHand);
1222
 };
1222
 };
1223
 
1223
 
1224
 /**
1224
 /**

+ 1
- 1
modules/UI/toolbars/Toolbar.js 查看文件

400
                                                             isVisible);
400
                                                             isVisible);
401
             });
401
             });
402
 
402
 
403
-        APP.UI.addListener(UIEvents.RAISE_HAND_CHANGED,
403
+        APP.UI.addListener(UIEvents.LOCAL_RAISE_HAND_CHANGED,
404
             function(isRaisedHand) {
404
             function(isRaisedHand) {
405
                 Toolbar._toggleRaiseHand(isRaisedHand);
405
                 Toolbar._toggleRaiseHand(isRaisedHand);
406
             });
406
             });

+ 1
- 1
service/UI/UIEvents.js 查看文件

110
     /**
110
     /**
111
      * Notifies that the raise hand has been changed.
111
      * Notifies that the raise hand has been changed.
112
      */
112
      */
113
-    RAISE_HAND_CHANGED: "UI.raise_hand_changed",
113
+    LOCAL_RAISE_HAND_CHANGED: "UI.local_raise_hand_changed",
114
 
114
 
115
     /**
115
     /**
116
      * Notifies that the avatar is displayed or not on the largeVideo.
116
      * Notifies that the avatar is displayed or not on the largeVideo.

正在加载...
取消
保存