|
@@ -117,23 +117,6 @@ ParticipantConnectionStatus.prototype.dispose = function () {
|
117
|
117
|
}.bind(this));
|
118
|
118
|
};
|
119
|
119
|
|
120
|
|
-/**
|
121
|
|
- * Checks whether given <tt>JitsiParticipant</tt> has any muted video
|
122
|
|
- * <tt>MediaStreamTrack</tt>s.
|
123
|
|
- *
|
124
|
|
- * @param {JitsiParticipant} participant to be checked for muted video tracks
|
125
|
|
- *
|
126
|
|
- * @return {boolean} <tt>true</tt> if given <tt>participant</tt> contains any
|
127
|
|
- * video <tt>MediaStreamTrack</tt>s muted according to their 'muted' field.
|
128
|
|
- */
|
129
|
|
-var hasRtcMutedVideoTrack = function (participant) {
|
130
|
|
- return participant.getTracks().some(function(jitsiTrack) {
|
131
|
|
- var rtcTrack = jitsiTrack.getTrack();
|
132
|
|
- return jitsiTrack.getType() === MediaType.VIDEO
|
133
|
|
- && rtcTrack && rtcTrack.muted === true;
|
134
|
|
- });
|
135
|
|
-};
|
136
|
|
-
|
137
|
120
|
/**
|
138
|
121
|
* Handles RTCEvents.ENDPOINT_CONN_STATUS_CHANGED triggered when we receive
|
139
|
122
|
* notification over the data channel from the bridge about endpoint's
|
|
@@ -155,7 +138,7 @@ ParticipantConnectionStatus.prototype.onEndpointConnStatusChanged
|
155
|
138
|
if (isActive
|
156
|
139
|
&& RTCBrowserType.isVideoMuteOnConnInterruptedSupported()
|
157
|
140
|
&& participant
|
158
|
|
- && hasRtcMutedVideoTrack(participant)
|
|
141
|
+ && participant.hasAnyVideoTrackWebRTCMuted()
|
159
|
142
|
&& !participant.isVideoMuted()) {
|
160
|
143
|
logger.debug(
|
161
|
144
|
'Ignoring RTCEvents.ENDPOINT_CONN_STATUS_CHANGED -'
|