Permalink
Browse files

feat(JitsiLocalTrack): update stored MSID

  • Loading branch information...
paweldomas committed Jan 27, 2017
1 parent 76229eb commit 7e2b986702f422f1659ede1f307d261c7046c74d
Showing with 13 additions and 2 deletions.
  1. +1 −1 JitsiConference.js
  2. +12 −1 modules/RTC/JitsiLocalTrack.js
View
@@ -1070,7 +1070,7 @@ function (jingleSession, jingleOffer, now) {
type: "addMuted",
ssrcs: localTrack.ssrc.ssrcs,
groups: localTrack.ssrc.groups,
msid: localTrack.initialMSID
msid: localTrack.storedMSID
};
}
try {
@@ -47,7 +47,7 @@ function JitsiLocalTrack(stream, track, mediaType, videoType, resolution,
this.deviceId = deviceId;
this.startMuted = false;
this.initialMSID = this.getMSID();
this.storedMSID = this.getMSID();
this.inMuteOrUnmuteProgress = false;
/**
@@ -216,6 +216,17 @@ JitsiLocalTrack.prototype._setRealDeviceIdFromDeviceList = function (devices) {
}
};
/**
* Sets the stream property of JitsiLocalTrack object and sets all stored
* handlers to it.
* @param {MediaStream} stream the new stream.
*/
JitsiLocalTrack.prototype._setStream = function (stream) {
JitsiTrack.prototype._setStream.call(this, stream);
// Store the MSID for video mute/unmute purposes
this.storedMSID = this.getMSID();
};
/**
* Mutes the track. Will reject the Promise if there is mute/unmute operation
* in progress.

0 comments on commit 7e2b986

Please sign in to comment.