From 18f38f0dff93665267bd1497b196d9270fdbdc88 Mon Sep 17 00:00:00 2001 From: shadlaws Date: Sat, 9 Mar 2013 12:51:45 +0100 Subject: #2046 - Change Gallery over to using MediaElementJS as its movie player. --- modules/gallery/helpers/gallery_theme.php | 4 ++ modules/gallery/models/item.php | 72 ++++++++++++------------ modules/gallery/tests/xss_data.txt | 14 ++--- modules/gallery/views/movieplayer-flash.html.php | 50 ---------------- modules/gallery/views/movieplayer.html.php | 17 ++++++ 5 files changed, 65 insertions(+), 92 deletions(-) delete mode 100644 modules/gallery/views/movieplayer-flash.html.php create mode 100644 modules/gallery/views/movieplayer.html.php (limited to 'modules/gallery') diff --git a/modules/gallery/helpers/gallery_theme.php b/modules/gallery/helpers/gallery_theme.php index 3c6d71e9..e5f6b0b4 100644 --- a/modules/gallery/helpers/gallery_theme.php +++ b/modules/gallery/helpers/gallery_theme.php @@ -49,6 +49,10 @@ class gallery_theme_Core { . $theme->script("l10n_client.js"); } + // Add MediaElementJS library + $buf .= $theme->script("mediaelementjs/mediaelement.js"); + $buf .= $theme->script("mediaelementjs/mediaelementplayer.js"); + $buf .= $theme->css("mediaelementjs/mediaelementplayer.css"); $buf .= $theme->css("uploadify/uploadify.css"); return $buf; } diff --git a/modules/gallery/models/item.php b/modules/gallery/models/item.php index e8afaec3..1e16d307 100644 --- a/modules/gallery/models/item.php +++ b/modules/gallery/models/item.php @@ -737,40 +737,42 @@ class Item_Model_Core extends ORM_MPTT { } /** - * Return a view for movies. By default this is a Flowplayer v3 - - 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 @@ + +
> + +
+ -- cgit v1.2.3