|
|
@@ -536,7 +536,12 @@ JitsiLocalTrack.prototype.getDeviceId = function () {
|
|
536
|
536
|
*/
|
|
537
|
537
|
JitsiLocalTrack.prototype._setByteSent = function (bytesSent) {
|
|
538
|
538
|
this._bytesSent = bytesSent;
|
|
539
|
|
- if(this._testByteSent) {
|
|
|
539
|
+ // FIXME it's a shame that PeerConnection and ICE status does not belong
|
|
|
540
|
+ // to the RTC module and it has to be accessed through
|
|
|
541
|
+ // the conference(and through the XMPP chat room ???) instead
|
|
|
542
|
+ let iceConnectionState
|
|
|
543
|
+ = this.conference ? this.conference.getConnectionState() : null;
|
|
|
544
|
+ if(this._testByteSent && "connected" === iceConnectionState) {
|
|
540
|
545
|
setTimeout(function () {
|
|
541
|
546
|
if(this._bytesSent <= 0){
|
|
542
|
547
|
//we are not receiving anything from the microphone
|