瀏覽代碼

fix(ParticipantConn...Status): bug in p2p status

When video track is frozen in P2P mode it should be INTERRUPTED instead
of INACTIVE.
tags/v0.0.2
paweldomas 8 年之前
父節點
當前提交
e0849fd57a
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      modules/connectivity/ParticipantConnectionStatus.js

+ 2
- 2
modules/connectivity/ParticipantConnectionStatus.js 查看文件

142
 
142
 
143
     /**
143
     /**
144
      * In P2P mode we don't care about any values coming from the JVB and
144
      * In P2P mode we don't care about any values coming from the JVB and
145
-     * the connection status can be only active or inactive.
145
+     * the connection status can be only active or interrupted.
146
      * @param {boolean} isVideoMuted the user if video muted
146
      * @param {boolean} isVideoMuted the user if video muted
147
      * @param {boolean} isVideoTrackFrozen true if the video track for
147
      * @param {boolean} isVideoTrackFrozen true if the video track for
148
      * the remote user is currently frozen. If the current browser does not
148
      * the remote user is currently frozen. If the current browser does not
159
 
159
 
160
         return isVideoMuted || !isVideoTrackFrozen
160
         return isVideoMuted || !isVideoTrackFrozen
161
             ? ParticipantConnectionStatus.ACTIVE
161
             ? ParticipantConnectionStatus.ACTIVE
162
-            : ParticipantConnectionStatus.INACTIVE;
162
+            : ParticipantConnectionStatus.INTERRUPTED;
163
     }
163
     }
164
 
164
 
165
     /**
165
     /**

Loading…
取消
儲存