File tree Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Original file line number Diff line number Diff line change 134134 }
135135 }
136136
137+ function isBytesReceivedChanges ( userId , inboundrtp ) {
138+ var res = true ,
139+ inbBytesRec = inboundrtp . bytesReceived ;
140+
141+ if ( network [ userId ] === undefined ) {
142+ network [ userId ] = {
143+ 'bytesReceived' : inbBytesRec
144+ } ;
145+ } else {
146+ if ( network [ userId ] . bytesReceived === inbBytesRec ) {
147+ res = false ;
148+ } else {
149+ network [ userId ] = {
150+ 'bytesReceived' : inbBytesRec
151+ } ;
152+ }
153+ }
154+
155+ return res ;
156+ }
157+
137158 /**
138159 * INITIALIZE
139160 */
492513 console . groupEnd ( ) ;
493514
494515 var inboundrtp = is_firefox ? _ . findWhere ( stats , { type : 'inboundrtp' } ) : undefined ;
495-
496516 /**
497517 * Hack for Firefox
498518 * (https://bugzilla.mozilla.org/show_bug.cgi?id=852665)
499519 */
500- if ( is_firefox && ! inboundrtp ) {
520+ if ( is_firefox && ( ! inboundrtp || ! isBytesReceivedChanges ( userId , inboundrtp ) ) ) {
501521 QB . webrtc . onStopCallListener ( app . currentSession , userId ) ;
502522 app . currentSession . processOnStop ( userId ) ;
503523 }
You can’t perform that action at this time.
0 commit comments