summaryrefslogtreecommitdiff
path: root/modules/gallery/views/movieplayer.html.php
diff options
context:
space:
mode:
authorshadlaws <shad@shadlaws.com>2013-03-09 12:51:45 +0100
committershadlaws <shad@shadlaws.com>2013-03-09 12:51:45 +0100
commit18f38f0dff93665267bd1497b196d9270fdbdc88 (patch)
treef2918bc61f794896ab197d31e5a8f9202aa452d8 /modules/gallery/views/movieplayer.html.php
parent566572809679ee5a266717cee1ed922ce4161814 (diff)
#2046 - Change Gallery over to using MediaElementJS as its movie player.
Diffstat (limited to 'modules/gallery/views/movieplayer.html.php')
-rw-r--r--modules/gallery/views/movieplayer.html.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/gallery/views/movieplayer.html.php b/modules/gallery/views/movieplayer.html.php
new file mode 100644
index 00000000..f78cc91a
--- /dev/null
+++ b/modules/gallery/views/movieplayer.html.php
@@ -0,0 +1,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>