From 384bc7afc86be706bf61def09afc8306cdad2443 Mon Sep 17 00:00:00 2001 From: shadlaws Date: Sat, 2 Mar 2013 23:56:13 +0100 Subject: #2033 - Add Flowplayer 5 to play HTML5 videos. - add Flowplayer 5 to lib/flowplayer-html5 - move existing Flash Flowplayer to lib/flowplayer-flash - update page.html.php and movieplayer.html.php --HG-- rename : lib/flowplayer.controls.swf => lib/flowplayer-flash/flowplayer.controls.swf rename : lib/flowplayer.js => lib/flowplayer-flash/flowplayer.js rename : lib/flowplayer.pseudostreaming-byterange.swf => lib/flowplayer-flash/flowplayer.pseudostreaming-byterange.swf rename : lib/flowplayer.pseudostreaming.swf => lib/flowplayer-flash/flowplayer.pseudostreaming.swf rename : lib/flowplayer.swf => lib/flowplayer-flash/flowplayer.swf --- themes/wind/views/page.html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'themes/wind/views') diff --git a/themes/wind/views/page.html.php b/themes/wind/views/page.html.php index 23021e4d..898b499d 100644 --- a/themes/wind/views/page.html.php +++ b/themes/wind/views/page.html.php @@ -56,7 +56,7 @@ script("jquery.scrollTo.js") ?> script("gallery.show_full_size.js") ?> page_subtype == "movie"): ?> - script("flowplayer.js") ?> + script("flowplayer-flash/flowplayer.js") ?> head() ?> -- cgit v1.2.3 From a517d9a33a47a2308cec1c9bfb1138abf181a909 Mon Sep 17 00:00:00 2001 From: shadlaws Date: Mon, 4 Mar 2013 23:44:50 +0100 Subject: Follow-on to #2033 - Change variables and js script loading for Flash Flowplayer. - changed movie_img event variable names to have "flash" in them. - moved flowplayer.js loading from page.html.php to movieplayer-flash. - removed conditional loading for small, photo-specific JS files in page.html.php to keep combined JS consistent between page types (better for caching). --- modules/gallery/models/item.php | 10 +++++----- modules/gallery/views/movieplayer-flash.html.php | 5 +++-- themes/wind/views/page.html.php | 6 ------ 3 files changed, 8 insertions(+), 13 deletions(-) (limited to 'themes/wind/views') diff --git a/modules/gallery/models/item.php b/modules/gallery/models/item.php index 01da010e..e72265d3 100644 --- a/modules/gallery/models/item.php +++ b/modules/gallery/models/item.php @@ -762,15 +762,15 @@ class Item_Model_Core extends ORM_MPTT { // - generate a view, which is used in place of the standard Flowplayer v3 player // (use view variable) // - alter the arguments sent to the standard player - // (use fp_params and fp_config variables) + // (use fp_flash_params and fp_flash_config variables) $movie_img = new stdClass(); $movie_img->max_size = $max_size; $movie_img->width = $width; $movie_img->height = $height; $movie_img->attrs = $attrs; $movie_img->url = $this->file_url(true); - $movie_img->fp_params = array(); // additional Flowplayer params values (will be json encoded) - $movie_img->fp_config = array(); // additional Flowplayer config values (will be json encoded) + $movie_img->fp_flash_params = array(); // add'l Flowplayer params values (will be json encoded) + $movie_img->fp_flash_config = array(); // add'l Flowplayer config values (will be json encoded) $movie_img->view = array(); module::event("movie_img", $movie_img, $this); @@ -790,8 +790,8 @@ class Item_Model_Core extends ORM_MPTT { $view->height = $movie_img->height; $view->attrs = $movie_img->attrs; $view->url = $movie_img->url; - $view->fp_params = $movie_img->fp_params; - $view->fp_config = $movie_img->fp_config; + $view->fp_flash_params = $movie_img->fp_flash_params; + $view->fp_flash_config = $movie_img->fp_flash_config; } else { // Filetype NOT supported by Flowplayer v3 - display download link $attrs = array_merge($attrs, array("style" => "width: {$max_size}px;", diff --git a/modules/gallery/views/movieplayer-flash.html.php b/modules/gallery/views/movieplayer-flash.html.php index 6d3cee2a..12303bf4 100644 --- a/modules/gallery/views/movieplayer-flash.html.php +++ b/modules/gallery/views/movieplayer-flash.html.php @@ -1,4 +1,5 @@ +