|
@@ -1179,7 +1179,7 @@ var VideoLayout = (function (my) {
|
1179
|
1179
|
console.log('stream ended', this);
|
1180
|
1180
|
|
1181
|
1181
|
VideoLayout.removeRemoteStreamElement(
|
1182
|
|
- stream, isVideo, container);
|
|
1182
|
+ stream, isVideo, container, newElementId);
|
1183
|
1183
|
|
1184
|
1184
|
// NOTE(gp) it seems that under certain circumstances, the
|
1185
|
1185
|
// onended event is not fired and thus the contact list is not
|
|
@@ -1249,14 +1249,14 @@ var VideoLayout = (function (my) {
|
1249
|
1249
|
* @param isVideo <tt>true</tt> if given <tt>stream</tt> is a video one.
|
1250
|
1250
|
* @param container
|
1251
|
1251
|
*/
|
1252
|
|
- my.removeRemoteStreamElement = function (stream, isVideo, container) {
|
|
1252
|
+ my.removeRemoteStreamElement = function (stream, isVideo, container, id) {
|
1253
|
1253
|
if (!container)
|
1254
|
1254
|
return;
|
1255
|
1255
|
|
1256
|
1256
|
var select = null;
|
1257
|
1257
|
var removedVideoSrc = null;
|
1258
|
1258
|
if (isVideo) {
|
1259
|
|
- select = $('#' + container.id + '>video');
|
|
1259
|
+ select = $('#' + id);
|
1260
|
1260
|
removedVideoSrc = APP.RTC.getVideoSrc(select.get(0));
|
1261
|
1261
|
}
|
1262
|
1262
|
else
|