summaryrefslogtreecommitdiff
path: root/modules/gallery/views/movieplayer.html.php
blob: f78cc91a22922a14ceecf6fc137912e6e993e9e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div <?= html::attributes($div_attrs) ?>>
  <video <?= html::attributes($video_attrs) ?>>
    <source <?= html::attributes($source_attrs) ?>>
  </video>
</div>
<script type="text/javascript">
  $("#<?= $div_attrs["id"] ?> video").mediaelementplayer(
    $.extend(true, {
      defaultVideoWidth: <?= $width ?>,
      defaultVideoHeight: <?= $height ?>,
      startVolume: 1.0,
      features: ["playpause", "progress", "current", "duration", "volume", "fullscreen"],
      pluginPath: "<?= url::abs_file("lib/mediaelementjs/") ?>"
    }, <?= json_encode($player_options) ?>)
  );
</script>