Browse Source

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

When video track is frozen in P2P mode it should be INTERRUPTED instead
of INACTIVE.
dev1
paweldomas 8 years ago
parent
commit
e0849fd57a
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      modules/connectivity/ParticipantConnectionStatus.js

+ 2
- 2
modules/connectivity/ParticipantConnectionStatus.js View File

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…
Cancel
Save