瀏覽代碼

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

j8
paweldomas 9 年之前
父節點
當前提交
875a7b6f4f
共有 1 個檔案被更改,包括 4 行新增1 行删除
  1. 4
    1
      modules/UI/videolayout/LargeVideo.js

+ 4
- 1
modules/UI/videolayout/LargeVideo.js 查看文件

@@ -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…
取消
儲存