diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2013-03-09 14:33:47 -0800 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2013-03-09 14:33:47 -0800 |
| commit | 0899528ff5e0057c9bd6436a9e79dc6bac9726d6 (patch) | |
| tree | f4be903c605f6dda066d4000026f01691fbbf65e /modules/gallery/views/movieplayer.html.php | |
| parent | e2cc29a61a0cb2c60e015841af983d3a6572a9d9 (diff) | |
| parent | 7d9276963e99ab74143e1e2af3d83ff674bd49a3 (diff) | |
Merge pull request #196 from shadlaws/fix_2046
#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.php | 17 |
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> |
