Kaynağa Gözat

Fixes remove video element functionality in UI to remove only the correct video instead of all.

j8
hristoterezov 10 yıl önce
ebeveyn
işleme
e01713f6f8
3 değiştirilmiş dosya ile 26263 ekleme ve 26253 silme
  1. 1
    1
      index.html
  2. 26259
    26249
      libs/app.bundle.js
  3. 3
    3
      modules/UI/videolayout/VideoLayout.js

+ 1
- 1
index.html Dosyayı Görüntüle

@@ -19,7 +19,7 @@
19 19
     <script src="libs/popover.js?v=1"></script><!-- bootstrap tooltip lib -->
20 20
     <script src="libs/toastr.js?v=1"></script><!-- notifications lib -->
21 21
     <script src="interface_config.js?v=5"></script>
22
-    <script src="libs/app.bundle.js?v=54"></script>
22
+    <script src="libs/app.bundle.js?v=55"></script>
23 23
     <script src="analytics.js?v=1"></script><!-- google analytics plugin -->
24 24
     <link rel="stylesheet" href="css/font.css?v=6"/>
25 25
     <link rel="stylesheet" href="css/toastr.css?v=1">

+ 26259
- 26249
libs/app.bundle.js
Dosya farkı çok büyük olduğundan ihmal edildi
Dosyayı Görüntüle


+ 3
- 3
modules/UI/videolayout/VideoLayout.js Dosyayı Görüntüle

@@ -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

Loading…
İptal
Kaydet