Skip to content

Commit

Permalink
Fixed bug with mejs player for local video slides
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed Apr 16, 2015
1 parent 02327fe commit 0fc593b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/rsts_default.html5
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@
var slider = $('.mod_rocksolid_slider').last();

<?php if (version_compare(VERSION, '3.3', '>=')) { $this->block('script_bgvideo'); } ?>
slider.find('video[data-rsts-background]').each(function() {
// Disable mejs for background videos
slider.find('video[data-rsts-background], [data-rsts-type=video] video').each(function() {
// Disable mejs for videos
this.player = false;
});
<?php if (version_compare(VERSION, '3.3', '>=')) { $this->endblock(); } ?>
Expand Down

0 comments on commit 0fc593b

Please sign in to comment.