Просмотр исходного кода

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

j8
paweldomas 9 лет назад
Родитель
Сommit
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
     /**

Загрузка…
Отмена
Сохранить