|
@@ -730,9 +730,8 @@ JitsiConference.prototype.leave = async function() {
|
730
|
730
|
* Returns the currently active media session if any.
|
731
|
731
|
*
|
732
|
732
|
* @returns {JingleSessionPC|undefined}
|
733
|
|
- * @private
|
734
|
733
|
*/
|
735
|
|
-JitsiConference.prototype._getActiveMediaSession = function() {
|
|
734
|
+JitsiConference.prototype.getActiveMediaSession = function() {
|
736
|
735
|
return this.isP2PActive() ? this.p2pJingleSession : this.jvbJingleSession;
|
737
|
736
|
};
|
738
|
737
|
|
|
@@ -740,9 +739,8 @@ JitsiConference.prototype._getActiveMediaSession = function() {
|
740
|
739
|
* Returns an array containing all media sessions existing in this conference.
|
741
|
740
|
*
|
742
|
741
|
* @returns {Array<JingleSessionPC>}
|
743
|
|
- * @private
|
744
|
742
|
*/
|
745
|
|
-JitsiConference.prototype._getMediaSessions = function() {
|
|
743
|
+JitsiConference.prototype.getMediaSessions = function() {
|
746
|
744
|
const sessions = [];
|
747
|
745
|
|
748
|
746
|
this.jvbJingleSession && sessions.push(this.jvbJingleSession);
|
|
@@ -1275,7 +1273,7 @@ JitsiConference.prototype.replaceTrack = function(oldTrack, newTrack) {
|
1275
|
1273
|
|
1276
|
1274
|
// we do not want to send presence update during setEffect switching, which does remove and then add
|
1277
|
1275
|
&& !(oldTrack?._setEffectInProgress || newTrack?._setEffectInProgress)) {
|
1278
|
|
- this._updateRoomPresence(this._getActiveMediaSession());
|
|
1276
|
+ this._updateRoomPresence(this.getActiveMediaSession());
|
1279
|
1277
|
}
|
1280
|
1278
|
|
1281
|
1279
|
if (newTrack !== null && (this.isMutedByFocus || this.isVideoMutedByFocus)) {
|
|
@@ -1911,7 +1909,7 @@ JitsiConference.prototype.onMemberLeft = function(jid) {
|
1911
|
1909
|
}
|
1912
|
1910
|
|
1913
|
1911
|
const participant = this.participants[id];
|
1914
|
|
- const mediaSessions = this._getMediaSessions();
|
|
1912
|
+ const mediaSessions = this.getMediaSessions();
|
1915
|
1913
|
let tracksToBeRemoved = [];
|
1916
|
1914
|
|
1917
|
1915
|
for (const session of mediaSessions) {
|
|
@@ -3325,9 +3323,7 @@ JitsiConference.prototype._setP2PStatus = function(newStatus) {
|
3325
|
3323
|
JitsiConferenceEvents.P2P_STATUS,
|
3326
|
3324
|
this,
|
3327
|
3325
|
this.p2p);
|
3328
|
|
- this.eventEmitter.emit(
|
3329
|
|
- JitsiConferenceEvents._MEDIA_SESSION_ACTIVE_CHANGED,
|
3330
|
|
- this._getActiveMediaSession());
|
|
3326
|
+ this.eventEmitter.emit(JitsiConferenceEvents._MEDIA_SESSION_ACTIVE_CHANGED, this.getActiveMediaSession());
|
3331
|
3327
|
|
3332
|
3328
|
// Refresh connection interrupted/restored
|
3333
|
3329
|
this.eventEmitter.emit(
|