Kaynağa Gözat

Uses property instead of jquery to hook "onplay" event of the large video.

j8
paweldomas 9 yıl önce
ebeveyn
işleme
875a7b6f4f
1 değiştirilmiş dosya ile 4 ekleme ve 1 silme
  1. 4
    1
      modules/UI/videolayout/LargeVideo.js

+ 4
- 1
modules/UI/videolayout/LargeVideo.js Dosyayı Görüntüle

@@ -179,7 +179,10 @@ class VideoContainer extends LargeContainer {
179 179
             this.$video.volume = 0;
180 180
         }
181 181
 
182
-        this.$video.on('play', onPlay);
182
+        // This does not work with Temasys plugin - has to be a property to be
183
+        // copied between new <object> elements
184
+        //this.$video.on('play', onPlay);
185
+        this.$video[0].onplay = onPlay;
183 186
     }
184 187
 
185 188
     /**

Loading…
İptal
Kaydet