|
|
@@ -264,8 +264,13 @@ RTC.prototype.createRemoteTrack = function (data, sid, thessrc) {
|
|
264
|
264
|
return remoteTrack;
|
|
265
|
265
|
};
|
|
266
|
266
|
|
|
267
|
|
-RTC.prototype.removeRemoteTrack = function (resource) {
|
|
268
|
|
- // FIXME this clears both audio and video tracks!
|
|
|
267
|
+/**
|
|
|
268
|
+ * Removes all JitsiRemoteTracks associated with given MUC nickname (resource
|
|
|
269
|
+ * part of the JID).
|
|
|
270
|
+ * @param resource the resource part of the MUC JID
|
|
|
271
|
+ * @returns {JitsiRemoteTrack|null}
|
|
|
272
|
+ */
|
|
|
273
|
+RTC.prototype.removeRemoteTracks = function (resource) {
|
|
269
|
274
|
if(this.remoteTracks[resource]) {
|
|
270
|
275
|
delete this.remoteTracks[resource];
|
|
271
|
276
|
}
|