Version Description
- bugfix for wp-content paths
- fix for some warnings
- bugfix for popups and splash image at the end
Download this release
Release Info
Developer | FolioVision |
Plugin | FV Flowplayer Video Player |
Version | 1.2.17 |
Comparing to | |
See all releases |
Code changes from version 1.0.6 to 1.2.17
- controller/backend.php +46 -46
- controller/frontend.php +48 -35
- controller/shortcodes.php +66 -51
- css/flowplayer.css +13 -20
- flowplayer.php +3 -5
- flowplayer/LICENSE.txt +721 -0
- flowplayer/README.txt +302 -0
- flowplayer/commercial/LICENSE_COMMERCIAL.txt +166 -0
- flowplayer/commercial/README.txt +255 -0
- flowplayer/commercial/flowplayer.commercial-3.1.5.swf +0 -0
- flowplayer/commercial/flowplayer.controls-3.1.5.swf +0 -0
- flowplayer/example.flv +0 -0
- flowplayer/flowplayer.audio-3.2.2.swf +0 -0
- flowplayer/flowplayer.controls.swf +0 -0
- flowplayer/flowplayer.swf +0 -0
- js/checkvideo.js +93 -0
- js/flowPlayer.js +1 -1
- models/flowplayer-backend.php +1 -8
- models/flowplayer-frontend.php +110 -83
- models/flowplayer.php +70 -26
- readme.txt +146 -15
- view/admin.php +101 -62
- view/backend-head.php +11 -2
- view/colours.php +16 -23
- view/frontend-head.php +44 -19
- view/wizard.php +216 -101
controller/backend.php
CHANGED
@@ -1,16 +1,13 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* Needed includes
|
5 |
*/
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
/**
|
10 |
* Create the flowplayer_backend object
|
11 |
*/
|
12 |
$fp = new flowplayer_backend();
|
13 |
-
|
14 |
/**
|
15 |
* WP Hooks
|
16 |
*/
|
@@ -18,46 +15,60 @@ add_action('admin_head', 'flowplayer_head');
|
|
18 |
add_action('admin_menu', 'flowplayer_admin');
|
19 |
add_action('media_buttons', 'flowplayer_add_media_button', 30);
|
20 |
add_action('media_upload_fv-wp-flowplayer', 'flowplayer_wizard');
|
21 |
-
|
|
|
|
|
22 |
add_action('the_content', 'flowplayer_content_remove_commas');
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
24 |
function flowplayer_content_remove_commas($content){
|
25 |
preg_match('/.*popup=\'(.*?)\'.*/', $content, $matches);
|
26 |
-
//var_dump($matches);
|
27 |
$content_new = preg_replace('/\,/', '',$content);
|
28 |
if (isset($matches[1]))
|
29 |
$content_new = preg_replace('/popup=\'(.*?)\'/', 'popup=\''.$matches[1].'\'',$content_new);
|
30 |
-
// var_dump($content_new);
|
31 |
return $content_new;
|
32 |
-
|
33 |
}
|
34 |
/**
|
35 |
* END WP Hooks
|
36 |
*/
|
37 |
-
|
38 |
function fp_media_send_to_editor($html, $attachment_id, $attachment){
|
39 |
-
if(isset($_POST['_wp_http_referer'])) {
|
40 |
-
preg_match('/
|
41 |
-
|
42 |
-
}
|
43 |
-
|
44 |
-
if ((!empty($matchesw))&&(!empty($matchesh))&&($matchesw[1]==640)&&($matchesh[1]==723)){
|
45 |
-
|
46 |
-
$video_types = array('flv','mov','avi','mpeg','mpg','asf','qt','wmv');
|
47 |
-
$splash_types = array('jpg','jpeg','gif','png', 'bmp','jpe');
|
48 |
if (isset($attachment_id))
|
49 |
{
|
50 |
$attachment_url = wp_get_attachment_url($attachment_id);
|
51 |
$path_parts = pathinfo($attachment_url);
|
52 |
-
|
53 |
-
setcookie("selected_image",$attachment_url);
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
}
|
62 |
wp_enqueue_style('media');
|
63 |
wp_iframe('flowplayer_wizard_function',$selected_attachment);
|
@@ -65,21 +76,22 @@ function fp_media_send_to_editor($html, $attachment_id, $attachment){
|
|
65 |
}
|
66 |
}
|
67 |
function flowplayer_wizard() {
|
|
|
68 |
setcookie("selected_video",'',time()-3600);
|
69 |
setcookie("selected_image",'',time()-3600);
|
70 |
wp_enqueue_style('media');
|
71 |
wp_iframe('flowplayer_wizard_function','');
|
72 |
}
|
73 |
-
|
74 |
function flowplayer_wizard_function($selected_attachment) {
|
75 |
-
|
|
|
|
|
|
|
76 |
}
|
77 |
-
|
78 |
/**
|
79 |
* Administrator environment function.
|
80 |
*/
|
81 |
function flowplayer_admin () {
|
82 |
-
|
83 |
// if we are in administrator environment
|
84 |
if (function_exists('add_submenu_page')) {
|
85 |
add_options_page(
|
@@ -91,7 +103,6 @@ function flowplayer_admin () {
|
|
91 |
);
|
92 |
}
|
93 |
}
|
94 |
-
|
95 |
/**
|
96 |
* Outputs HTML code for bool options based on arg passed.
|
97 |
* @param string Currently selected value ('true' or 'false').
|
@@ -111,7 +122,6 @@ function flowplayer_bool_select($current) {
|
|
111 |
}
|
112 |
return $html;
|
113 |
}
|
114 |
-
|
115 |
/**
|
116 |
* Displays administrator menu with configuration.
|
117 |
*/
|
@@ -120,7 +130,6 @@ function flowplayer_page() {
|
|
120 |
$fp = new flowplayer();
|
121 |
include dirname( __FILE__ ) . '/../view/admin.php';
|
122 |
}
|
123 |
-
|
124 |
/**
|
125 |
* Checks for errors regarding access to configuration file. Displays errors if any occur.
|
126 |
* @param object $fp Flowplayer class object.
|
@@ -129,7 +138,6 @@ function flowplayer_check_errors($fp){
|
|
129 |
$html = '';
|
130 |
// config file checks, exists, readable, writeable
|
131 |
$conf_file = realpath(dirname(__FILE__)).'/wpfp.conf'; //Zdenka: I think here should be /../
|
132 |
-
|
133 |
if(!file_exists($conf_file)){
|
134 |
$html .= '<h3 style="font-weight: bold; color: #ff0000">'.$conf_file.' Does not exist please create it</h3>';
|
135 |
} elseif(!is_readable($conf_file)){
|
@@ -139,28 +147,20 @@ function flowplayer_check_errors($fp){
|
|
139 |
}
|
140 |
// return $html; //Zdenka : Why is this not here?
|
141 |
}
|
142 |
-
|
143 |
function flowplayer_add_media_button(){
|
144 |
global $post;
|
145 |
$plugins = get_option('active_plugins');
|
146 |
$found = false;
|
147 |
-
|
148 |
foreach ( $plugins AS $plugin ) {
|
149 |
if( stripos($plugin,'foliopress-wysiwyg') !== FALSE )
|
150 |
$found = true;
|
151 |
}
|
152 |
if(!$found)
|
153 |
{
|
154 |
-
|
155 |
-
$wizard_url = $fmp_jw_url . '/inc/shortcode_wizard.php';
|
156 |
-
$config_dir = $fmp_jw_files_dir . '/configs';
|
157 |
-
$playlist_dir = $fmp_jw_files_dir .'/playlists';
|
158 |
-
$button_src = $fmp_jw_url . '/inc/images/playerbutton.gif';
|
159 |
-
$button_tip = 'Insert a Flash MP3 Player';*/
|
160 |
$wizard_url = 'media-upload.php?post_id='.$post->ID.'&type=fv-wp-flowplayer';
|
161 |
$button_src = RELATIVE_PATH.'/images/icon.png';
|
162 |
echo '<a title="Add FV WP Flowplayer" href="'.$wizard_url.'&TB_iframe=true&width=500&height=300" class="thickbox" ><img src="' . $button_src . '" alt="' . $button_tip . '" /></a>';
|
163 |
}
|
164 |
}
|
165 |
-
|
166 |
?>
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* Needed includes
|
4 |
*/
|
5 |
+
include_once(dirname( __FILE__ ) . '/../models/flowplayer.php');
|
6 |
+
include_once(dirname( __FILE__ ) . '/../models/flowplayer-backend.php');
|
|
|
7 |
/**
|
8 |
* Create the flowplayer_backend object
|
9 |
*/
|
10 |
$fp = new flowplayer_backend();
|
|
|
11 |
/**
|
12 |
* WP Hooks
|
13 |
*/
|
15 |
add_action('admin_menu', 'flowplayer_admin');
|
16 |
add_action('media_buttons', 'flowplayer_add_media_button', 30);
|
17 |
add_action('media_upload_fv-wp-flowplayer', 'flowplayer_wizard');
|
18 |
+
add_action('admin_init', 'fv_flowplayer_init');
|
19 |
+
if(isset($_POST['_wp_http_referer']) && (strpos($_POST['_wp_http_referer'],'fvplayer')))
|
20 |
+
add_filter('media_send_to_editor','fp_media_send_to_editor', 10, 3);
|
21 |
add_action('the_content', 'flowplayer_content_remove_commas');
|
22 |
+
function fv_flowplayer_init()
|
23 |
+
{
|
24 |
+
add_action( 'wp_ajax_fvp_ajax_action_checkvideo', 'fvp_ajax_action_checkvideo' );
|
25 |
+
global $wp_rewrite;
|
26 |
+
// $wp_rewrite->flush_rules(false);
|
27 |
+
}
|
28 |
function flowplayer_content_remove_commas($content){
|
29 |
preg_match('/.*popup=\'(.*?)\'.*/', $content, $matches);
|
|
|
30 |
$content_new = preg_replace('/\,/', '',$content);
|
31 |
if (isset($matches[1]))
|
32 |
$content_new = preg_replace('/popup=\'(.*?)\'/', 'popup=\''.$matches[1].'\'',$content_new);
|
|
|
33 |
return $content_new;
|
|
|
34 |
}
|
35 |
/**
|
36 |
* END WP Hooks
|
37 |
*/
|
|
|
38 |
function fp_media_send_to_editor($html, $attachment_id, $attachment){
|
39 |
+
if(isset($_POST['_wp_http_referer']) && (strpos($_POST['_wp_http_referer'],'fvplayer'))) {
|
40 |
+
preg_match('/height=([0-9]+([a-z]+))/',$_POST['_wp_http_referer'],$matchesh);
|
41 |
+
$video_flag = substr($matchesh[2],8);
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
if (isset($attachment_id))
|
43 |
{
|
44 |
$attachment_url = wp_get_attachment_url($attachment_id);
|
45 |
$path_parts = pathinfo($attachment_url);
|
46 |
+
switch ($video_flag){
|
47 |
+
case 'splash': setcookie("selected_image",$attachment_url);
|
48 |
+
$selected_attachment = array('url'=>$attachment_url,'id'=>$attachment_id,'type'=>'splash');
|
49 |
+
$uploaded_image = $attachment_url;
|
50 |
+
break;
|
51 |
+
case 'normal': setcookie("selected_video",$attachment_url);
|
52 |
+
$selected_attachment = array('url'=>$attachment_url,'type'=>'normal');
|
53 |
+
$uploaded_video = $attachment_url;
|
54 |
+
break;
|
55 |
+
case 'low': setcookie("selected_video_low",$attachment_url);
|
56 |
+
$selected_attachment = array('url'=>$attachment_url,'type'=>'low');
|
57 |
+
$uploaded_video_mobile = $attachment_url;
|
58 |
+
break;
|
59 |
+
case 'mobile': setcookie("selected_video_mobile",$attachment_url);
|
60 |
+
$selected_attachment = array('url'=>$attachment_url,'type'=>'mobile');
|
61 |
+
$uploaded_video_mobile = $attachment_url;
|
62 |
+
break;
|
63 |
+
case 'webm': setcookie("selected_video_webm",$attachment_url);
|
64 |
+
$selected_attachment = array('url'=>$attachment_url,'type'=>'webm');
|
65 |
+
$uploaded_video_mobile = $attachment_url;
|
66 |
+
break;
|
67 |
+
case 'trigp': setcookie("selected_video_3gp",$attachment_url);
|
68 |
+
$selected_attachment = array('url'=>$attachment_url,'type'=>'3gp');
|
69 |
+
$uploaded_video_mobile = $attachment_url;
|
70 |
+
break;
|
71 |
+
}
|
72 |
}
|
73 |
wp_enqueue_style('media');
|
74 |
wp_iframe('flowplayer_wizard_function',$selected_attachment);
|
76 |
}
|
77 |
}
|
78 |
function flowplayer_wizard() {
|
79 |
+
//do the magic here
|
80 |
setcookie("selected_video",'',time()-3600);
|
81 |
setcookie("selected_image",'',time()-3600);
|
82 |
wp_enqueue_style('media');
|
83 |
wp_iframe('flowplayer_wizard_function','');
|
84 |
}
|
|
|
85 |
function flowplayer_wizard_function($selected_attachment) {
|
86 |
+
if(get_option('wp_mobile_video_active')=='enabled')
|
87 |
+
include dirname( __FILE__ ) . '/../../wp-mobile-video-player/view/wizard.php'; /// use the extended wizard
|
88 |
+
else
|
89 |
+
include dirname( __FILE__ ) . '/../view/wizard.php';
|
90 |
}
|
|
|
91 |
/**
|
92 |
* Administrator environment function.
|
93 |
*/
|
94 |
function flowplayer_admin () {
|
|
|
95 |
// if we are in administrator environment
|
96 |
if (function_exists('add_submenu_page')) {
|
97 |
add_options_page(
|
103 |
);
|
104 |
}
|
105 |
}
|
|
|
106 |
/**
|
107 |
* Outputs HTML code for bool options based on arg passed.
|
108 |
* @param string Currently selected value ('true' or 'false').
|
122 |
}
|
123 |
return $html;
|
124 |
}
|
|
|
125 |
/**
|
126 |
* Displays administrator menu with configuration.
|
127 |
*/
|
130 |
$fp = new flowplayer();
|
131 |
include dirname( __FILE__ ) . '/../view/admin.php';
|
132 |
}
|
|
|
133 |
/**
|
134 |
* Checks for errors regarding access to configuration file. Displays errors if any occur.
|
135 |
* @param object $fp Flowplayer class object.
|
138 |
$html = '';
|
139 |
// config file checks, exists, readable, writeable
|
140 |
$conf_file = realpath(dirname(__FILE__)).'/wpfp.conf'; //Zdenka: I think here should be /../
|
|
|
141 |
if(!file_exists($conf_file)){
|
142 |
$html .= '<h3 style="font-weight: bold; color: #ff0000">'.$conf_file.' Does not exist please create it</h3>';
|
143 |
} elseif(!is_readable($conf_file)){
|
147 |
}
|
148 |
// return $html; //Zdenka : Why is this not here?
|
149 |
}
|
|
|
150 |
function flowplayer_add_media_button(){
|
151 |
global $post;
|
152 |
$plugins = get_option('active_plugins');
|
153 |
$found = false;
|
|
|
154 |
foreach ( $plugins AS $plugin ) {
|
155 |
if( stripos($plugin,'foliopress-wysiwyg') !== FALSE )
|
156 |
$found = true;
|
157 |
}
|
158 |
if(!$found)
|
159 |
{
|
160 |
+
$button_tip = 'Insert a Flash Video Player';
|
|
|
|
|
|
|
|
|
|
|
161 |
$wizard_url = 'media-upload.php?post_id='.$post->ID.'&type=fv-wp-flowplayer';
|
162 |
$button_src = RELATIVE_PATH.'/images/icon.png';
|
163 |
echo '<a title="Add FV WP Flowplayer" href="'.$wizard_url.'&TB_iframe=true&width=500&height=300" class="thickbox" ><img src="' . $button_src . '" alt="' . $button_tip . '" /></a>';
|
164 |
}
|
165 |
}
|
|
|
166 |
?>
|
controller/frontend.php
CHANGED
@@ -1,29 +1,35 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* Needed includes
|
5 |
*/
|
6 |
-
|
7 |
-
|
8 |
-
|
|
|
|
|
9 |
/**
|
10 |
* WP Hooks
|
11 |
*/
|
12 |
-
|
13 |
//add_action('the_content', 'flowplayer_content_remove_commas');
|
14 |
add_action('wp_head', 'flowplayer_head');
|
15 |
add_action('wp_footer','flowplayer_display_scripts');
|
16 |
// Addition for 0.9.15
|
17 |
-
add_action('widget_text','flowplayer_content');
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
/**
|
20 |
* END WP Hooks
|
21 |
*/
|
22 |
-
|
23 |
$GLOBALS['scripts'] = array();
|
24 |
-
|
25 |
function flowplayer_content_remove_commas($content){
|
26 |
-
|
27 |
preg_match('/.*popup=\'(.*?)\'.*/', $content, $matches);
|
28 |
//var_dump($matches);
|
29 |
$content_new = preg_replace('/\,/', '',$content);
|
@@ -32,21 +38,17 @@ function flowplayer_content_remove_commas($content){
|
|
32 |
// var_dump($content_new);
|
33 |
return $content_new;
|
34 |
}
|
35 |
-
|
36 |
/**
|
37 |
* Replaces the flowplayer tags in post content by players and fills the $GLOBALS['scripts'] array.
|
38 |
* @param string Content to be parsed
|
39 |
* @return string Modified content string
|
40 |
*/
|
41 |
function flowplayer_content( $content ) {
|
42 |
-
|
43 |
$content_matches = array();
|
44 |
preg_match_all('/\[flowplayer\ [^\]]+\]/i', $content, $content_matches);
|
45 |
-
|
46 |
// process all found tags
|
47 |
foreach ($content_matches[0] as $tag) {
|
48 |
$ntag = str_replace("\'",''',$tag);
|
49 |
-
|
50 |
// search for URL
|
51 |
preg_match("/src='([^']*?)'/i",$ntag,$tmp);
|
52 |
if( $tmp[1] == NULL ) {
|
@@ -61,7 +63,6 @@ function flowplayer_content( $content ) {
|
|
61 |
$media = $matches[2];
|
62 |
else
|
63 |
$media = $matches[0];*/
|
64 |
-
|
65 |
if ($matches[0] == NULL)
|
66 |
$media = $media;
|
67 |
elseif ($matches[1] == NULL){
|
@@ -71,24 +72,19 @@ function flowplayer_content( $content ) {
|
|
71 |
$media = $matches[2];
|
72 |
}
|
73 |
// var_dump($media);
|
74 |
-
|
75 |
// width and heigth
|
76 |
preg_match("/width=(\d*)/i",$ntag,$width);
|
77 |
preg_match("/height=(\d*)/i",$ntag,$height);
|
78 |
-
|
79 |
if( $width[1] != NULL)
|
80 |
$arguments['width'] = $width[1];
|
81 |
if( $height[1] != NULL)
|
82 |
$arguments['height'] = $height[1];
|
83 |
-
|
84 |
preg_match("/controlbar=\'?([a-zA-Z]*)\'?/i",$ntag,$controlbar);
|
85 |
if( $controlbar[1] != NULL)
|
86 |
$arguments['controlbar'] = $controlbar[1];
|
87 |
-
|
88 |
preg_match("/redirect=\'?([^\s\]]*)\'?/i",$ntag,$redirect);
|
89 |
if( $redirect[1] != NULL)
|
90 |
$arguments['redirect'] = $redirect[1];
|
91 |
-
|
92 |
// search for autoplay
|
93 |
preg_match("/[\s]+autoplay([\s]|])+/i",$ntag,$tmp);
|
94 |
if (isset($tmp[0])){
|
@@ -101,11 +97,9 @@ function flowplayer_content( $content ) {
|
|
101 |
preg_match("/autoplay=([A-Za-z]*)/i",$ntag,$tmp);
|
102 |
if (isset($tmp[1])) $arguments['autoplay'] = $tmp[1];
|
103 |
}
|
104 |
-
|
105 |
// search for popup in quotes
|
106 |
preg_match("/popup='([^']*?)'/i",$ntag,$tmp);
|
107 |
$arguments['popup'] = $tmp[1];
|
108 |
-
|
109 |
// search for splash image
|
110 |
preg_match("/splash='([^']*?)'/i",$ntag,$tmp); //quotes version
|
111 |
if( $tmp[1] == NULL ) {
|
@@ -129,42 +123,61 @@ function flowplayer_content( $content ) {
|
|
129 |
else
|
130 |
$arguments['splash'] = $matches[2];//$tmp[1];
|
131 |
}
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
if (trim($media) != '') {
|
136 |
// build new player
|
137 |
$fp = new flowplayer_frontend();
|
138 |
-
$new_player = $fp->build_min_player($media,$arguments);
|
139 |
$content = str_replace($tag, $new_player['html'],$content);
|
140 |
$GLOBALS['scripts'][] = $new_player['script'];
|
141 |
}
|
142 |
}
|
143 |
-
|
144 |
return $content;
|
145 |
}
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
/**
|
150 |
* Prints flowplayer javascript content to the bottom of the page.
|
151 |
*/
|
152 |
function flowplayer_display_scripts() {
|
153 |
if (!empty($GLOBALS['scripts'])) {
|
154 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
foreach ($GLOBALS['scripts'] as $scr) {
|
156 |
echo $scr;
|
157 |
}
|
158 |
-
echo "\n\n
|
159 |
}
|
160 |
}
|
161 |
-
|
162 |
/**
|
163 |
* This is the template tag. Use the standard Flowplayer shortcodes
|
164 |
*/
|
165 |
-
|
166 |
function flowplayer($shortcode) {
|
167 |
echo apply_filters('the_content',$shortcode);
|
168 |
}
|
169 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
170 |
?>
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* Needed includes
|
4 |
*/
|
5 |
+
include_once(dirname( __FILE__ ) . '/../models/flowplayer.php');
|
6 |
+
if(get_option('wp_mobile_video_active')=='enabled')
|
7 |
+
include_once(dirname( __FILE__ ) . '/../../wp-mobile-video-player/models/flowplayer-frontend.php');
|
8 |
+
else
|
9 |
+
include_once(dirname( __FILE__ ) . '/../models/flowplayer-frontend.php');
|
10 |
/**
|
11 |
* WP Hooks
|
12 |
*/
|
|
|
13 |
//add_action('the_content', 'flowplayer_content_remove_commas');
|
14 |
add_action('wp_head', 'flowplayer_head');
|
15 |
add_action('wp_footer','flowplayer_display_scripts');
|
16 |
// Addition for 0.9.15
|
17 |
+
//add_action('widget_text','flowplayer_content');
|
18 |
+
add_filter('widget_text','do_shortcode');
|
19 |
+
function fvfp_remove_shortcode_feed($content) {
|
20 |
+
if(is_feed()) {
|
21 |
+
$content = preg_replace('/\[flowplayer.*?\]/','',$content);
|
22 |
+
$content = preg_replace('/<a id="wpfp_.*\/a>/','',$content);
|
23 |
+
}
|
24 |
+
return $content;
|
25 |
+
}
|
26 |
+
add_filter('the_excerpt_rss', 'fvfp_remove_shortcode_feed');
|
27 |
+
add_filter('the_content_feed', 'fvfp_remove_shortcode_feed');
|
28 |
/**
|
29 |
* END WP Hooks
|
30 |
*/
|
|
|
31 |
$GLOBALS['scripts'] = array();
|
|
|
32 |
function flowplayer_content_remove_commas($content){
|
|
|
33 |
preg_match('/.*popup=\'(.*?)\'.*/', $content, $matches);
|
34 |
//var_dump($matches);
|
35 |
$content_new = preg_replace('/\,/', '',$content);
|
38 |
// var_dump($content_new);
|
39 |
return $content_new;
|
40 |
}
|
|
|
41 |
/**
|
42 |
* Replaces the flowplayer tags in post content by players and fills the $GLOBALS['scripts'] array.
|
43 |
* @param string Content to be parsed
|
44 |
* @return string Modified content string
|
45 |
*/
|
46 |
function flowplayer_content( $content ) {
|
|
|
47 |
$content_matches = array();
|
48 |
preg_match_all('/\[flowplayer\ [^\]]+\]/i', $content, $content_matches);
|
|
|
49 |
// process all found tags
|
50 |
foreach ($content_matches[0] as $tag) {
|
51 |
$ntag = str_replace("\'",''',$tag);
|
|
|
52 |
// search for URL
|
53 |
preg_match("/src='([^']*?)'/i",$ntag,$tmp);
|
54 |
if( $tmp[1] == NULL ) {
|
63 |
$media = $matches[2];
|
64 |
else
|
65 |
$media = $matches[0];*/
|
|
|
66 |
if ($matches[0] == NULL)
|
67 |
$media = $media;
|
68 |
elseif ($matches[1] == NULL){
|
72 |
$media = $matches[2];
|
73 |
}
|
74 |
// var_dump($media);
|
|
|
75 |
// width and heigth
|
76 |
preg_match("/width=(\d*)/i",$ntag,$width);
|
77 |
preg_match("/height=(\d*)/i",$ntag,$height);
|
|
|
78 |
if( $width[1] != NULL)
|
79 |
$arguments['width'] = $width[1];
|
80 |
if( $height[1] != NULL)
|
81 |
$arguments['height'] = $height[1];
|
|
|
82 |
preg_match("/controlbar=\'?([a-zA-Z]*)\'?/i",$ntag,$controlbar);
|
83 |
if( $controlbar[1] != NULL)
|
84 |
$arguments['controlbar'] = $controlbar[1];
|
|
|
85 |
preg_match("/redirect=\'?([^\s\]]*)\'?/i",$ntag,$redirect);
|
86 |
if( $redirect[1] != NULL)
|
87 |
$arguments['redirect'] = $redirect[1];
|
|
|
88 |
// search for autoplay
|
89 |
preg_match("/[\s]+autoplay([\s]|])+/i",$ntag,$tmp);
|
90 |
if (isset($tmp[0])){
|
97 |
preg_match("/autoplay=([A-Za-z]*)/i",$ntag,$tmp);
|
98 |
if (isset($tmp[1])) $arguments['autoplay'] = $tmp[1];
|
99 |
}
|
|
|
100 |
// search for popup in quotes
|
101 |
preg_match("/popup='([^']*?)'/i",$ntag,$tmp);
|
102 |
$arguments['popup'] = $tmp[1];
|
|
|
103 |
// search for splash image
|
104 |
preg_match("/splash='([^']*?)'/i",$ntag,$tmp); //quotes version
|
105 |
if( $tmp[1] == NULL ) {
|
123 |
else
|
124 |
$arguments['splash'] = $matches[2];//$tmp[1];
|
125 |
}
|
|
|
|
|
|
|
126 |
if (trim($media) != '') {
|
127 |
// build new player
|
128 |
$fp = new flowplayer_frontend();
|
129 |
+
$new_player = $fp->build_min_player($media,NULL,$arguments);
|
130 |
$content = str_replace($tag, $new_player['html'],$content);
|
131 |
$GLOBALS['scripts'][] = $new_player['script'];
|
132 |
}
|
133 |
}
|
|
|
134 |
return $content;
|
135 |
}
|
|
|
|
|
|
|
136 |
/**
|
137 |
* Prints flowplayer javascript content to the bottom of the page.
|
138 |
*/
|
139 |
function flowplayer_display_scripts() {
|
140 |
if (!empty($GLOBALS['scripts'])) {
|
141 |
+
$conf = get_option( 'fvwpflowplayer' );
|
142 |
+
if ($conf['optimizejs']=='true'){
|
143 |
+
echo "<script type=\"text/javascript\" src=\"" . RELATIVE_PATH . "/flowplayer/flowplayer.min.js\"></script>\n";
|
144 |
+
echo "<script type=\"text/javascript\" src=\"" . RELATIVE_PATH . "/js/checkvideo.js\"></script>\n";
|
145 |
+
echo "<!--[if lt IE 7.]>
|
146 |
+
<script defer type=\"text/javascript\" src=\"" . RELATIVE_PATH . "/js/pngfix.js\"></script>
|
147 |
+
<![endif]-->
|
148 |
+
<script type=\"text/javascript\">
|
149 |
+
/*<![CDATA[*/
|
150 |
+
function fp_replay(hash) {
|
151 |
+
var fp = document.getElementById('wpfp_'+hash);
|
152 |
+
var popup = document.getElementById('wpfp_'+hash+'_popup');
|
153 |
+
fp.removeChild(popup);
|
154 |
+
flowplayer('wpfp_'+hash).play();
|
155 |
+
}
|
156 |
+
function fp_share(hash) {
|
157 |
+
var cp = document.getElementById('wpfp_'+hash+'_custom_popup');
|
158 |
+
cp.innerHTML = '<div style=\"margin-top: 10px; text-align: center;\"><label for=\"permalink\" style=\"color: white;\">Permalink to this page:</label><input onclick=\"this.select();\" id=\"permalink\" name=\"permalink\" type=\"text\" value=\"http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']."\" /></div>';
|
159 |
+
}
|
160 |
+
/*]]>*/
|
161 |
+
</script>";
|
162 |
+
}
|
163 |
+
echo "\n<script type=\"text/javascript\">\n\n\n";
|
164 |
foreach ($GLOBALS['scripts'] as $scr) {
|
165 |
echo $scr;
|
166 |
}
|
167 |
+
echo "\n\n//\n</script>\n";
|
168 |
}
|
169 |
}
|
|
|
170 |
/**
|
171 |
* This is the template tag. Use the standard Flowplayer shortcodes
|
172 |
*/
|
|
|
173 |
function flowplayer($shortcode) {
|
174 |
echo apply_filters('the_content',$shortcode);
|
175 |
}
|
176 |
+
add_filter( "the_content_feed", "strip_flowplayer_from_feed" ) ;
|
177 |
+
function strip_flowplayer_from_feed($content)
|
178 |
+
{
|
179 |
+
preg_match('/(<img src[\s\S]*?class=\"splash\" \/>)/',$content,$matches);
|
180 |
+
$content = preg_replace('/<p><a id=\"wpfp[\S\s]*?p>/',$matches[1],$content);
|
181 |
+
return $content;
|
182 |
+
}
|
183 |
?>
|
controller/shortcodes.php
CHANGED
@@ -1,70 +1,87 @@
|
|
1 |
<?php
|
2 |
require_once dirname( __FILE__ ) . '/../models/flowplayer.php';
|
3 |
-
|
4 |
-
|
5 |
|
6 |
add_shortcode('flowplayer','flowplayer_content_handle');
|
7 |
|
8 |
-
function flowplayer_content_handle( $atts ) {
|
9 |
-
/// Addition 2010/07/12 mv
|
10 |
-
$fp = new flowplayer_frontend();
|
11 |
-
if( $fp->conf['commas'] == 'true' ) {
|
12 |
-
|
13 |
-
if( !isset( $atts['src'] ) ) {
|
14 |
-
foreach( $atts AS $key => $att ) {
|
15 |
-
if( stripos( $att, 'src=' ) !== FALSE ) {
|
16 |
-
$atts['src'] = preg_replace( '/^\s*?src=[\'"](.*)[\'"],\s*?$/', '$1', $att );
|
17 |
-
$i = $key+1;
|
18 |
-
unset( $atts[$key] ); // = ''; // let's remove it, so it won't confuse the rest of workaaround
|
19 |
-
}
|
20 |
-
}
|
21 |
-
}
|
22 |
-
|
23 |
-
if( !isset( $atts['splash'] ) ) {
|
24 |
-
foreach( $atts AS $key => $att ) {
|
25 |
-
if( stripos( $att, 'splash=' ) !== FALSE ) {
|
26 |
-
$atts['splash'] = preg_replace( '/^\s*?splash=[\'"](.*)[\'"],\s*?$/', '$1', $att );
|
27 |
-
unset( $atts[$key] ); // = ''; // let's remove it, so it won't confuse the rest of workaround
|
28 |
-
}
|
29 |
-
}
|
30 |
-
}
|
31 |
-
|
32 |
-
// the popup should really be a content of the shortcode, not an attribute
|
33 |
-
// this part will fix the popup if there is any single quote in it.
|
34 |
-
if( !isset( $atts['popup'] ) ) {
|
35 |
-
$popup = array();
|
36 |
-
$is_popup = false;
|
37 |
-
foreach( $atts AS $key => $att ) {
|
38 |
-
if( !is_numeric( $key ) ) continue;
|
39 |
-
if( ( stripos( $att, 'popup=' ) !== FALSE || $is_popup ) && stripos( $att, 'src=' ) === FALSE && stripos( $att, 'splash=' ) === FALSE) {
|
40 |
-
$popup[] = $att;
|
41 |
-
$is_popup = true;
|
42 |
-
unset( $atts[$key] ); // = ''; // let's remove it, so it won't confuse the rest of workaround
|
43 |
-
}
|
44 |
-
}
|
45 |
-
$popup = implode( ' ', $popup );
|
46 |
-
$atts['popup'] = preg_replace( '/^\s*?popup=[\'"](.*)[\'"]\s*?$/mi', '$1', $popup );
|
47 |
-
}
|
48 |
-
|
49 |
-
}
|
50 |
-
/// End of addition
|
51 |
-
|
52 |
extract( shortcode_atts( array(
|
53 |
'src' => '',
|
|
|
|
|
|
|
|
|
|
|
54 |
'width' => '',
|
55 |
'height' => '',
|
|
|
|
|
56 |
'autoplay' => '',
|
57 |
'splash' => '',
|
58 |
'popup' => '',
|
59 |
'controlbar' => '',
|
60 |
-
'redirect' => ''
|
61 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
|
63 |
$arguments['width'] = preg_replace('/\,/', '', $width);
|
64 |
$arguments['height'] = preg_replace('/\,/', '', $height);
|
|
|
|
|
65 |
$arguments['autoplay'] = preg_replace('/\,/', '', $autoplay);
|
66 |
// $arguments['embed'] = $embed;
|
67 |
$arguments['splash'] = preg_replace('/\,/', '', $splash);
|
|
|
68 |
$arguments['popup'] = $popup;
|
69 |
$arguments['controlbar'] = preg_replace('/\,/', '', $controlbar);
|
70 |
$arguments['redirect'] = preg_replace('/\,/', '', $redirect);
|
@@ -73,11 +90,9 @@ function flowplayer_content_handle( $atts ) {
|
|
73 |
if (trim($src) != '') {
|
74 |
// build new player
|
75 |
//$fp = new flowplayer_frontend();
|
76 |
-
$new_player = $fp->build_min_player($src,$arguments);
|
77 |
-
// var_dump($new_player['html']);
|
78 |
$content = str_replace($src, $new_player['html'],$atts);
|
79 |
$GLOBALS['scripts'][] = $new_player['script'];
|
80 |
-
// var_dump($content);
|
81 |
}
|
82 |
return $new_player['html'];
|
83 |
// return $content;
|
1 |
<?php
|
2 |
require_once dirname( __FILE__ ) . '/../models/flowplayer.php';
|
3 |
+
if (!class_exists('flowplayer_frontend'))
|
4 |
+
require_once dirname( __FILE__ ) . '/../models/flowplayer-frontend.php';
|
5 |
|
6 |
add_shortcode('flowplayer','flowplayer_content_handle');
|
7 |
|
8 |
+
function flowplayer_content_handle( $atts ) {
|
9 |
+
/// Addition 2010/07/12 mv
|
10 |
+
$fp = new flowplayer_frontend();
|
11 |
+
if( $fp->conf['commas'] == 'true' ) {
|
12 |
+
|
13 |
+
if( !isset( $atts['src'] ) ) {
|
14 |
+
foreach( $atts AS $key => $att ) {
|
15 |
+
if( stripos( $att, 'src=' ) !== FALSE ) {
|
16 |
+
$atts['src'] = preg_replace( '/^\s*?src=[\'"](.*)[\'"],\s*?$/', '$1', $att );
|
17 |
+
$i = $key+1;
|
18 |
+
unset( $atts[$key] ); // = ''; // let's remove it, so it won't confuse the rest of workaaround
|
19 |
+
}
|
20 |
+
}
|
21 |
+
}
|
22 |
+
|
23 |
+
if( !isset( $atts['splash'] ) ) {
|
24 |
+
foreach( $atts AS $key => $att ) {
|
25 |
+
if( stripos( $att, 'splash=' ) !== FALSE ) {
|
26 |
+
$atts['splash'] = preg_replace( '/^\s*?splash=[\'"](.*)[\'"],\s*?$/', '$1', $att );
|
27 |
+
unset( $atts[$key] ); // = ''; // let's remove it, so it won't confuse the rest of workaround
|
28 |
+
}
|
29 |
+
}
|
30 |
+
}
|
31 |
+
|
32 |
+
// the popup should really be a content of the shortcode, not an attribute
|
33 |
+
// this part will fix the popup if there is any single quote in it.
|
34 |
+
if( !isset( $atts['popup'] ) ) {
|
35 |
+
$popup = array();
|
36 |
+
$is_popup = false;
|
37 |
+
foreach( $atts AS $key => $att ) {
|
38 |
+
if( !is_numeric( $key ) ) continue;
|
39 |
+
if( ( stripos( $att, 'popup=' ) !== FALSE || $is_popup ) && stripos( $att, 'src=' ) === FALSE && stripos( $att, 'splash=' ) === FALSE) {
|
40 |
+
$popup[] = $att;
|
41 |
+
$is_popup = true;
|
42 |
+
unset( $atts[$key] ); // = ''; // let's remove it, so it won't confuse the rest of workaround
|
43 |
+
}
|
44 |
+
}
|
45 |
+
$popup = implode( ' ', $popup );
|
46 |
+
$atts['popup'] = preg_replace( '/^\s*?popup=[\'"](.*)[\'"]\s*?$/mi', '$1', $popup );
|
47 |
+
}
|
48 |
+
|
49 |
+
}
|
50 |
+
/// End of addition
|
51 |
+
|
52 |
extract( shortcode_atts( array(
|
53 |
'src' => '',
|
54 |
+
'src_mobile' => '',
|
55 |
+
'src_webm' => '',
|
56 |
+
'src_3gp' => '',
|
57 |
+
'src_low' => '',
|
58 |
+
'src_mobile' => '',
|
59 |
'width' => '',
|
60 |
'height' => '',
|
61 |
+
'width_mobile' => '',
|
62 |
+
'height_mobile' => '',
|
63 |
'autoplay' => '',
|
64 |
'splash' => '',
|
65 |
'popup' => '',
|
66 |
'controlbar' => '',
|
67 |
+
'redirect' => '',
|
68 |
+
'splashend' => ''
|
69 |
+
), $atts ) );
|
70 |
+
|
71 |
+
$sources['normal'] = $src;
|
72 |
+
$sources['low'] = $src_low;
|
73 |
+
$sources['mobile'] = $src_mobile;
|
74 |
+
$sources['webm'] = $src_webm;
|
75 |
+
$sources['3gp'] = $src_3gp;
|
76 |
|
77 |
$arguments['width'] = preg_replace('/\,/', '', $width);
|
78 |
$arguments['height'] = preg_replace('/\,/', '', $height);
|
79 |
+
$arguments['width_mobile'] = preg_replace('/\,/', '', $width_mobile);
|
80 |
+
$arguments['height_mobile'] = preg_replace('/\,/', '', $height_mobile);
|
81 |
$arguments['autoplay'] = preg_replace('/\,/', '', $autoplay);
|
82 |
// $arguments['embed'] = $embed;
|
83 |
$arguments['splash'] = preg_replace('/\,/', '', $splash);
|
84 |
+
$arguments['splashend'] = preg_replace('/\,/', '', $splashend);
|
85 |
$arguments['popup'] = $popup;
|
86 |
$arguments['controlbar'] = preg_replace('/\,/', '', $controlbar);
|
87 |
$arguments['redirect'] = preg_replace('/\,/', '', $redirect);
|
90 |
if (trim($src) != '') {
|
91 |
// build new player
|
92 |
//$fp = new flowplayer_frontend();
|
93 |
+
$new_player = $fp->build_min_player($src,$sources,$arguments);
|
|
|
94 |
$content = str_replace($src, $new_player['html'],$atts);
|
95 |
$GLOBALS['scripts'][] = $new_player['script'];
|
|
|
96 |
}
|
97 |
return $new_player['html'];
|
98 |
// return $content;
|
css/flowplayer.css
CHANGED
@@ -8,27 +8,24 @@
|
|
8 |
padding: 0 !important;
|
9 |
text-align: center !important;
|
10 |
}
|
11 |
-
|
12 |
.flowplayer_container:hover
|
13 |
{
|
14 |
text-decoration: none;
|
15 |
}
|
16 |
-
|
17 |
/* SPLASH IMAGE */
|
18 |
img.splash
|
19 |
{
|
20 |
position: absolute;
|
21 |
top: 0 !important;
|
22 |
left: 0 !important;
|
23 |
-
width: 100
|
24 |
-
height: 100
|
25 |
cursor: pointer;
|
26 |
background: none;
|
27 |
border: none;
|
28 |
margin: 0 !important;
|
29 |
padding: 0 !important;
|
30 |
}
|
31 |
-
|
32 |
.splash_play_button
|
33 |
{
|
34 |
position: relative;
|
@@ -38,7 +35,6 @@ img.splash
|
|
38 |
border: none;
|
39 |
padding: 0 !important;
|
40 |
}
|
41 |
-
|
42 |
/* POPUP */
|
43 |
.popup_contents
|
44 |
{
|
@@ -47,7 +43,6 @@ img.splash
|
|
47 |
/*top: -9999em;
|
48 |
left: -9999em;*/
|
49 |
}
|
50 |
-
|
51 |
.flowplayer_popup
|
52 |
{
|
53 |
position: absolute;
|
@@ -62,21 +57,17 @@ img.splash
|
|
62 |
padding: 0%;
|
63 |
z-index: 999;
|
64 |
}
|
65 |
-
|
66 |
.wpfp_custom_popup
|
67 |
{
|
68 |
margin: 0;
|
69 |
padding: 0;
|
70 |
font-family: Arial, serif;
|
71 |
-
|
72 |
}
|
73 |
-
|
74 |
.wpfp_custom_popup a, .wpfp_custom_popup a:hover, .wpfp_custom_popup a:visited, .wpfp_custom_popup a:active
|
75 |
{
|
76 |
color: white;
|
77 |
text-decoration: none;
|
78 |
}
|
79 |
-
|
80 |
.flowplayer_popup a, .flowplayer_popup a img
|
81 |
{
|
82 |
margin: auto !important;
|
@@ -85,31 +76,33 @@ img.splash
|
|
85 |
border: none;
|
86 |
padding: 0 !important;
|
87 |
}
|
88 |
-
|
89 |
.wpfp_custom_popup input
|
90 |
{
|
91 |
width: 80%;
|
92 |
margin: 5px;
|
93 |
}
|
94 |
-
|
95 |
.popup_controls
|
96 |
{
|
97 |
text-align: center;
|
98 |
font-size: 100%;
|
99 |
}
|
100 |
-
|
101 |
.link_button{
|
102 |
background: #0D0D0D url('../images/button-bg.png') repeat-x;
|
103 |
padding: 5px 20px;
|
|
|
104 |
border: 1px solid #eeeeee;
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
}
|
110 |
.link_button a, .link_button a:visited, .link_button a:active{
|
111 |
color:#fff;
|
112 |
text-decoration: none;
|
113 |
}
|
114 |
-
|
115 |
-
|
|
|
|
|
|
|
|
|
|
8 |
padding: 0 !important;
|
9 |
text-align: center !important;
|
10 |
}
|
|
|
11 |
.flowplayer_container:hover
|
12 |
{
|
13 |
text-decoration: none;
|
14 |
}
|
|
|
15 |
/* SPLASH IMAGE */
|
16 |
img.splash
|
17 |
{
|
18 |
position: absolute;
|
19 |
top: 0 !important;
|
20 |
left: 0 !important;
|
21 |
+
width: 100% !important;
|
22 |
+
height: 100% !important;
|
23 |
cursor: pointer;
|
24 |
background: none;
|
25 |
border: none;
|
26 |
margin: 0 !important;
|
27 |
padding: 0 !important;
|
28 |
}
|
|
|
29 |
.splash_play_button
|
30 |
{
|
31 |
position: relative;
|
35 |
border: none;
|
36 |
padding: 0 !important;
|
37 |
}
|
|
|
38 |
/* POPUP */
|
39 |
.popup_contents
|
40 |
{
|
43 |
/*top: -9999em;
|
44 |
left: -9999em;*/
|
45 |
}
|
|
|
46 |
.flowplayer_popup
|
47 |
{
|
48 |
position: absolute;
|
57 |
padding: 0%;
|
58 |
z-index: 999;
|
59 |
}
|
|
|
60 |
.wpfp_custom_popup
|
61 |
{
|
62 |
margin: 0;
|
63 |
padding: 0;
|
64 |
font-family: Arial, serif;
|
|
|
65 |
}
|
|
|
66 |
.wpfp_custom_popup a, .wpfp_custom_popup a:hover, .wpfp_custom_popup a:visited, .wpfp_custom_popup a:active
|
67 |
{
|
68 |
color: white;
|
69 |
text-decoration: none;
|
70 |
}
|
|
|
71 |
.flowplayer_popup a, .flowplayer_popup a img
|
72 |
{
|
73 |
margin: auto !important;
|
76 |
border: none;
|
77 |
padding: 0 !important;
|
78 |
}
|
|
|
79 |
.wpfp_custom_popup input
|
80 |
{
|
81 |
width: 80%;
|
82 |
margin: 5px;
|
83 |
}
|
|
|
84 |
.popup_controls
|
85 |
{
|
86 |
text-align: center;
|
87 |
font-size: 100%;
|
88 |
}
|
|
|
89 |
.link_button{
|
90 |
background: #0D0D0D url('../images/button-bg.png') repeat-x;
|
91 |
padding: 5px 20px;
|
92 |
+
margin-top: 15px;
|
93 |
border: 1px solid #eeeeee;
|
94 |
+
font-family: Arial, serif;
|
95 |
+
font-size:11pt;
|
96 |
+
z-index: 999;
|
|
|
97 |
}
|
98 |
.link_button a, .link_button a:visited, .link_button a:active{
|
99 |
color:#fff;
|
100 |
text-decoration: none;
|
101 |
}
|
102 |
+
.smallnote{
|
103 |
+
font-size: 70%;
|
104 |
+
color: #aaa;
|
105 |
+
}
|
106 |
+
.html5video{
|
107 |
+
text-align:center;
|
108 |
+
}
|
flowplayer.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: FV Wordpress Flowplayer
|
4 |
Plugin URI: http://foliovision.com/seo-tools/wordpress/plugins/fv-wordpress-flowplayer
|
5 |
Description: Embed videos (FLV, H.264, and MP4) into posts or pages. Uses modified version of flowplayer (with removed FP logo and copyright notice).
|
6 |
-
Version: 1.
|
7 |
Author: Foliovision
|
8 |
Author URI: http://foliovision.com/
|
9 |
*/
|
@@ -21,8 +21,6 @@ if(is_admin()) {
|
|
21 |
* If administrator is not logged, loads the controller for frontend.
|
22 |
*/
|
23 |
include( dirname( __FILE__ ) . '/controller/frontend.php' );
|
24 |
-
|
25 |
}
|
26 |
-
|
27 |
-
|
28 |
-
?>
|
3 |
Plugin Name: FV Wordpress Flowplayer
|
4 |
Plugin URI: http://foliovision.com/seo-tools/wordpress/plugins/fv-wordpress-flowplayer
|
5 |
Description: Embed videos (FLV, H.264, and MP4) into posts or pages. Uses modified version of flowplayer (with removed FP logo and copyright notice).
|
6 |
+
Version: 1.2.17
|
7 |
Author: Foliovision
|
8 |
Author URI: http://foliovision.com/
|
9 |
*/
|
21 |
* If administrator is not logged, loads the controller for frontend.
|
22 |
*/
|
23 |
include( dirname( __FILE__ ) . '/controller/frontend.php' );
|
24 |
+
require_once( dirname( __FILE__ ) . '/controller/shortcodes.php');
|
25 |
}
|
26 |
+
?>
|
|
|
|
flowplayer/LICENSE.txt
ADDED
@@ -0,0 +1,721 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The Flowplayer Free version is released under the
|
2 |
+
GNU GENERAL PUBLIC LICENSE Version 3 (GPL).
|
3 |
+
|
4 |
+
The GPL requires that you not remove the Flowplayer copyright notices
|
5 |
+
from the user interface. See section 5.d below.
|
6 |
+
|
7 |
+
Commercial licenses are available. The commercial player version
|
8 |
+
does not require any Flowplayer notices or texts and also provides
|
9 |
+
some additional features.
|
10 |
+
|
11 |
+
========================================================================
|
12 |
+
|
13 |
+
ADDITIONAL TERM per GPL Section 7
|
14 |
+
If you convey this program (or any modifications of it) and assume
|
15 |
+
contractual liability for the program to recipients of it, you agree
|
16 |
+
to indemnify Flowplayer, Ltd. for any liability that those contractual
|
17 |
+
assumptions impose on Flowplayer, Ltd.
|
18 |
+
|
19 |
+
Except as expressly provided herein, no trademark rights are granted in
|
20 |
+
any trademarks of Flowplayer, Ltd. Licensees are granted a limited,
|
21 |
+
non-exclusive right to use the mark Flowplayer and the Flowplayer logos
|
22 |
+
in connection with unmodified copies of the Program and the copyright
|
23 |
+
notices required by section 5.d of the GPL license. For the purposes
|
24 |
+
of this limited trademark license grant, customizing the Flowplayer
|
25 |
+
by skinning, scripting, or including PlugIns provided by Flowplayer, Ltd.
|
26 |
+
is not considered modifying the Program.
|
27 |
+
|
28 |
+
Licensees that do modify the Program, taking advantage of the open-source
|
29 |
+
license, may not use the Flowplayer mark or Flowplayer logos and must
|
30 |
+
change the fullscreen notice (and the non-fullscreen notice, if that
|
31 |
+
option is enabled), the copyright notice in the dialog box, and the
|
32 |
+
notice on the Canvas as follows:
|
33 |
+
|
34 |
+
the full screen (and non-fullscreen equivalent, if activated) notice
|
35 |
+
should read: "Based on Flowplayer source code"; in the context menu
|
36 |
+
(right-click menu), the link to "About Flowplayer free version #.#.#"
|
37 |
+
can remain. The copyright notice can remain, but must be supplemented with
|
38 |
+
an additional notice, stating that the licensee modified the Flowplayer.
|
39 |
+
A suitable notice might read "Flowplayer Source code modified by ModOrg 2009";
|
40 |
+
for the canvas, the notice should read "Based on Flowplayer source code".
|
41 |
+
In addition, licensees that modify the Program must give the modified
|
42 |
+
Program a new name that is not confusingly similar to Flowplayer and
|
43 |
+
may not distribute it under the name Flowplayer.
|
44 |
+
|
45 |
+
========================================================================
|
46 |
+
|
47 |
+
|
48 |
+
GNU GENERAL PUBLIC LICENSE
|
49 |
+
Version 3, 29 June 2007
|
50 |
+
|
51 |
+
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
52 |
+
Everyone is permitted to copy and distribute verbatim copies
|
53 |
+
of this license document, but changing it is not allowed.
|
54 |
+
|
55 |
+
Preamble
|
56 |
+
|
57 |
+
The GNU General Public License is a free, copyleft license for
|
58 |
+
software and other kinds of works.
|
59 |
+
|
60 |
+
The licenses for most software and other practical works are designed
|
61 |
+
to take away your freedom to share and change the works. By contrast,
|
62 |
+
the GNU General Public License is intended to guarantee your freedom to
|
63 |
+
share and change all versions of a program--to make sure it remains free
|
64 |
+
software for all its users. We, the Free Software Foundation, use the
|
65 |
+
GNU General Public License for most of our software; it applies also to
|
66 |
+
any other work released this way by its authors. You can apply it to
|
67 |
+
your programs, too.
|
68 |
+
|
69 |
+
When we speak of free software, we are referring to freedom, not
|
70 |
+
price. Our General Public Licenses are designed to make sure that you
|
71 |
+
have the freedom to distribute copies of free software (and charge for
|
72 |
+
them if you wish), that you receive source code or can get it if you
|
73 |
+
want it, that you can change the software or use pieces of it in new
|
74 |
+
free programs, and that you know you can do these things.
|
75 |
+
|
76 |
+
To protect your rights, we need to prevent others from denying you
|
77 |
+
these rights or asking you to surrender the rights. Therefore, you have
|
78 |
+
certain responsibilities if you distribute copies of the software, or if
|
79 |
+
you modify it: responsibilities to respect the freedom of others.
|
80 |
+
|
81 |
+
For example, if you distribute copies of such a program, whether
|
82 |
+
gratis or for a fee, you must pass on to the recipients the same
|
83 |
+
freedoms that you received. You must make sure that they, too, receive
|
84 |
+
or can get the source code. And you must show them these terms so they
|
85 |
+
know their rights.
|
86 |
+
|
87 |
+
Developers that use the GNU GPL protect your rights with two steps:
|
88 |
+
(1) assert copyright on the software, and (2) offer you this License
|
89 |
+
giving you legal permission to copy, distribute and/or modify it.
|
90 |
+
|
91 |
+
For the developers' and authors' protection, the GPL clearly explains
|
92 |
+
that there is no warranty for this free software. For both users' and
|
93 |
+
authors' sake, the GPL requires that modified versions be marked as
|
94 |
+
changed, so that their problems will not be attributed erroneously to
|
95 |
+
authors of previous versions.
|
96 |
+
|
97 |
+
Some devices are designed to deny users access to install or run
|
98 |
+
modified versions of the software inside them, although the manufacturer
|
99 |
+
can do so. This is fundamentally incompatible with the aim of
|
100 |
+
protecting users' freedom to change the software. The systematic
|
101 |
+
pattern of such abuse occurs in the area of products for individuals to
|
102 |
+
use, which is precisely where it is most unacceptable. Therefore, we
|
103 |
+
have designed this version of the GPL to prohibit the practice for those
|
104 |
+
products. If such problems arise substantially in other domains, we
|
105 |
+
stand ready to extend this provision to those domains in future versions
|
106 |
+
of the GPL, as needed to protect the freedom of users.
|
107 |
+
|
108 |
+
Finally, every program is threatened constantly by software patents.
|
109 |
+
States should not allow patents to restrict development and use of
|
110 |
+
software on general-purpose computers, but in those that do, we wish to
|
111 |
+
avoid the special danger that patents applied to a free program could
|
112 |
+
make it effectively proprietary. To prevent this, the GPL assures that
|
113 |
+
patents cannot be used to render the program non-free.
|
114 |
+
|
115 |
+
The precise terms and conditions for copying, distribution and
|
116 |
+
modification follow.
|
117 |
+
|
118 |
+
TERMS AND CONDITIONS
|
119 |
+
|
120 |
+
0. Definitions.
|
121 |
+
|
122 |
+
"This License" refers to version 3 of the GNU General Public License.
|
123 |
+
|
124 |
+
"Copyright" also means copyright-like laws that apply to other kinds of
|
125 |
+
works, such as semiconductor masks.
|
126 |
+
|
127 |
+
"The Program" refers to any copyrightable work licensed under this
|
128 |
+
License. Each licensee is addressed as "you". "Licensees" and
|
129 |
+
"recipients" may be individuals or organizations.
|
130 |
+
|
131 |
+
To "modify" a work means to copy from or adapt all or part of the work
|
132 |
+
in a fashion requiring copyright permission, other than the making of an
|
133 |
+
exact copy. The resulting work is called a "modified version" of the
|
134 |
+
earlier work or a work "based on" the earlier work.
|
135 |
+
|
136 |
+
A "covered work" means either the unmodified Program or a work based
|
137 |
+
on the Program.
|
138 |
+
|
139 |
+
To "propagate" a work means to do anything with it that, without
|
140 |
+
permission, would make you directly or secondarily liable for
|
141 |
+
infringement under applicable copyright law, except executing it on a
|
142 |
+
computer or modifying a private copy. Propagation includes copying,
|
143 |
+
distribution (with or without modification), making available to the
|
144 |
+
public, and in some countries other activities as well.
|
145 |
+
|
146 |
+
To "convey" a work means any kind of propagation that enables other
|
147 |
+
parties to make or receive copies. Mere interaction with a user through
|
148 |
+
a computer network, with no transfer of a copy, is not conveying.
|
149 |
+
|
150 |
+
An interactive user interface displays "Appropriate Legal Notices"
|
151 |
+
to the extent that it includes a convenient and prominently visible
|
152 |
+
feature that (1) displays an appropriate copyright notice, and (2)
|
153 |
+
tells the user that there is no warranty for the work (except to the
|
154 |
+
extent that warranties are provided), that licensees may convey the
|
155 |
+
work under this License, and how to view a copy of this License. If
|
156 |
+
the interface presents a list of user commands or options, such as a
|
157 |
+
menu, a prominent item in the list meets this criterion.
|
158 |
+
|
159 |
+
1. Source Code.
|
160 |
+
|
161 |
+
The "source code" for a work means the preferred form of the work
|
162 |
+
for making modifications to it. "Object code" means any non-source
|
163 |
+
form of a work.
|
164 |
+
|
165 |
+
A "Standard Interface" means an interface that either is an official
|
166 |
+
standard defined by a recognized standards body, or, in the case of
|
167 |
+
interfaces specified for a particular programming language, one that
|
168 |
+
is widely used among developers working in that language.
|
169 |
+
|
170 |
+
The "System Libraries" of an executable work include anything, other
|
171 |
+
than the work as a whole, that (a) is included in the normal form of
|
172 |
+
packaging a Major Component, but which is not part of that Major
|
173 |
+
Component, and (b) serves only to enable use of the work with that
|
174 |
+
Major Component, or to implement a Standard Interface for which an
|
175 |
+
implementation is available to the public in source code form. A
|
176 |
+
"Major Component", in this context, means a major essential component
|
177 |
+
(kernel, window system, and so on) of the specific operating system
|
178 |
+
(if any) on which the executable work runs, or a compiler used to
|
179 |
+
produce the work, or an object code interpreter used to run it.
|
180 |
+
|
181 |
+
The "Corresponding Source" for a work in object code form means all
|
182 |
+
the source code needed to generate, install, and (for an executable
|
183 |
+
work) run the object code and to modify the work, including scripts to
|
184 |
+
control those activities. However, it does not include the work's
|
185 |
+
System Libraries, or general-purpose tools or generally available free
|
186 |
+
programs which are used unmodified in performing those activities but
|
187 |
+
which are not part of the work. For example, Corresponding Source
|
188 |
+
includes interface definition files associated with source files for
|
189 |
+
the work, and the source code for shared libraries and dynamically
|
190 |
+
linked subprograms that the work is specifically designed to require,
|
191 |
+
such as by intimate data communication or control flow between those
|
192 |
+
subprograms and other parts of the work.
|
193 |
+
|
194 |
+
The Corresponding Source need not include anything that users
|
195 |
+
can regenerate automatically from other parts of the Corresponding
|
196 |
+
Source.
|
197 |
+
|
198 |
+
The Corresponding Source for a work in source code form is that
|
199 |
+
same work.
|
200 |
+
|
201 |
+
2. Basic Permissions.
|
202 |
+
|
203 |
+
All rights granted under this License are granted for the term of
|
204 |
+
copyright on the Program, and are irrevocable provided the stated
|
205 |
+
conditions are met. This License explicitly affirms your unlimited
|
206 |
+
permission to run the unmodified Program. The output from running a
|
207 |
+
covered work is covered by this License only if the output, given its
|
208 |
+
content, constitutes a covered work. This License acknowledges your
|
209 |
+
rights of fair use or other equivalent, as provided by copyright law.
|
210 |
+
|
211 |
+
You may make, run and propagate covered works that you do not
|
212 |
+
convey, without conditions so long as your license otherwise remains
|
213 |
+
in force. You may convey covered works to others for the sole purpose
|
214 |
+
of having them make modifications exclusively for you, or provide you
|
215 |
+
with facilities for running those works, provided that you comply with
|
216 |
+
the terms of this License in conveying all material for which you do
|
217 |
+
not control copyright. Those thus making or running the covered works
|
218 |
+
for you must do so exclusively on your behalf, under your direction
|
219 |
+
and control, on terms that prohibit them from making any copies of
|
220 |
+
your copyrighted material outside their relationship with you.
|
221 |
+
|
222 |
+
Conveying under any other circumstances is permitted solely under
|
223 |
+
the conditions stated below. Sublicensing is not allowed; section 10
|
224 |
+
makes it unnecessary.
|
225 |
+
|
226 |
+
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
227 |
+
|
228 |
+
No covered work shall be deemed part of an effective technological
|
229 |
+
measure under any applicable law fulfilling obligations under article
|
230 |
+
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
231 |
+
similar laws prohibiting or restricting circumvention of such
|
232 |
+
measures.
|
233 |
+
|
234 |
+
When you convey a covered work, you waive any legal power to forbid
|
235 |
+
circumvention of technological measures to the extent such circumvention
|
236 |
+
is effected by exercising rights under this License with respect to
|
237 |
+
the covered work, and you disclaim any intention to limit operation or
|
238 |
+
modification of the work as a means of enforcing, against the work's
|
239 |
+
users, your or third parties' legal rights to forbid circumvention of
|
240 |
+
technological measures.
|
241 |
+
|
242 |
+
4. Conveying Verbatim Copies.
|
243 |
+
|
244 |
+
You may convey verbatim copies of the Program's source code as you
|
245 |
+
receive it, in any medium, provided that you conspicuously and
|
246 |
+
appropriately publish on each copy an appropriate copyright notice;
|
247 |
+
keep intact all notices stating that this License and any
|
248 |
+
non-permissive terms added in accord with section 7 apply to the code;
|
249 |
+
keep intact all notices of the absence of any warranty; and give all
|
250 |
+
recipients a copy of this License along with the Program.
|
251 |
+
|
252 |
+
You may charge any price or no price for each copy that you convey,
|
253 |
+
and you may offer support or warranty protection for a fee.
|
254 |
+
|
255 |
+
5. Conveying Modified Source Versions.
|
256 |
+
|
257 |
+
You may convey a work based on the Program, or the modifications to
|
258 |
+
produce it from the Program, in the form of source code under the
|
259 |
+
terms of section 4, provided that you also meet all of these conditions:
|
260 |
+
|
261 |
+
a) The work must carry prominent notices stating that you modified
|
262 |
+
it, and giving a relevant date.
|
263 |
+
|
264 |
+
b) The work must carry prominent notices stating that it is
|
265 |
+
released under this License and any conditions added under section
|
266 |
+
7. This requirement modifies the requirement in section 4 to
|
267 |
+
"keep intact all notices".
|
268 |
+
|
269 |
+
c) You must license the entire work, as a whole, under this
|
270 |
+
License to anyone who comes into possession of a copy. This
|
271 |
+
License will therefore apply, along with any applicable section 7
|
272 |
+
additional terms, to the whole of the work, and all its parts,
|
273 |
+
regardless of how they are packaged. This License gives no
|
274 |
+
permission to license the work in any other way, but it does not
|
275 |
+
invalidate such permission if you have separately received it.
|
276 |
+
|
277 |
+
d) If the work has interactive user interfaces, each must display
|
278 |
+
Appropriate Legal Notices; however, if the Program has interactive
|
279 |
+
interfaces that do not display Appropriate Legal Notices, your
|
280 |
+
work need not make them do so.
|
281 |
+
|
282 |
+
A compilation of a covered work with other separate and independent
|
283 |
+
works, which are not by their nature extensions of the covered work,
|
284 |
+
and which are not combined with it such as to form a larger program,
|
285 |
+
in or on a volume of a storage or distribution medium, is called an
|
286 |
+
"aggregate" if the compilation and its resulting copyright are not
|
287 |
+
used to limit the access or legal rights of the compilation's users
|
288 |
+
beyond what the individual works permit. Inclusion of a covered work
|
289 |
+
in an aggregate does not cause this License to apply to the other
|
290 |
+
parts of the aggregate.
|
291 |
+
|
292 |
+
6. Conveying Non-Source Forms.
|
293 |
+
|
294 |
+
You may convey a covered work in object code form under the terms
|
295 |
+
of sections 4 and 5, provided that you also convey the
|
296 |
+
machine-readable Corresponding Source under the terms of this License,
|
297 |
+
in one of these ways:
|
298 |
+
|
299 |
+
a) Convey the object code in, or embodied in, a physical product
|
300 |
+
(including a physical distribution medium), accompanied by the
|
301 |
+
Corresponding Source fixed on a durable physical medium
|
302 |
+
customarily used for software interchange.
|
303 |
+
|
304 |
+
b) Convey the object code in, or embodied in, a physical product
|
305 |
+
(including a physical distribution medium), accompanied by a
|
306 |
+
written offer, valid for at least three years and valid for as
|
307 |
+
long as you offer spare parts or customer support for that product
|
308 |
+
model, to give anyone who possesses the object code either (1) a
|
309 |
+
copy of the Corresponding Source for all the software in the
|
310 |
+
product that is covered by this License, on a durable physical
|
311 |
+
medium customarily used for software interchange, for a price no
|
312 |
+
more than your reasonable cost of physically performing this
|
313 |
+
conveying of source, or (2) access to copy the
|
314 |
+
Corresponding Source from a network server at no charge.
|
315 |
+
|
316 |
+
c) Convey individual copies of the object code with a copy of the
|
317 |
+
written offer to provide the Corresponding Source. This
|
318 |
+
alternative is allowed only occasionally and noncommercially, and
|
319 |
+
only if you received the object code with such an offer, in accord
|
320 |
+
with subsection 6b.
|
321 |
+
|
322 |
+
d) Convey the object code by offering access from a designated
|
323 |
+
place (gratis or for a charge), and offer equivalent access to the
|
324 |
+
Corresponding Source in the same way through the same place at no
|
325 |
+
further charge. You need not require recipients to copy the
|
326 |
+
Corresponding Source along with the object code. If the place to
|
327 |
+
copy the object code is a network server, the Corresponding Source
|
328 |
+
may be on a different server (operated by you or a third party)
|
329 |
+
that supports equivalent copying facilities, provided you maintain
|
330 |
+
clear directions next to the object code saying where to find the
|
331 |
+
Corresponding Source. Regardless of what server hosts the
|
332 |
+
Corresponding Source, you remain obligated to ensure that it is
|
333 |
+
available for as long as needed to satisfy these requirements.
|
334 |
+
|
335 |
+
e) Convey the object code using peer-to-peer transmission, provided
|
336 |
+
you inform other peers where the object code and Corresponding
|
337 |
+
Source of the work are being offered to the general public at no
|
338 |
+
charge under subsection 6d.
|
339 |
+
|
340 |
+
A separable portion of the object code, whose source code is excluded
|
341 |
+
from the Corresponding Source as a System Library, need not be
|
342 |
+
included in conveying the object code work.
|
343 |
+
|
344 |
+
A "User Product" is either (1) a "consumer product", which means any
|
345 |
+
tangible personal property which is normally used for personal, family,
|
346 |
+
or household purposes, or (2) anything designed or sold for incorporation
|
347 |
+
into a dwelling. In determining whether a product is a consumer product,
|
348 |
+
doubtful cases shall be resolved in favor of coverage. For a particular
|
349 |
+
product received by a particular user, "normally used" refers to a
|
350 |
+
typical or common use of that class of product, regardless of the status
|
351 |
+
of the particular user or of the way in which the particular user
|
352 |
+
actually uses, or expects or is expected to use, the product. A product
|
353 |
+
is a consumer product regardless of whether the product has substantial
|
354 |
+
commercial, industrial or non-consumer uses, unless such uses represent
|
355 |
+
the only significant mode of use of the product.
|
356 |
+
|
357 |
+
"Installation Information" for a User Product means any methods,
|
358 |
+
procedures, authorization keys, or other information required to install
|
359 |
+
and execute modified versions of a covered work in that User Product from
|
360 |
+
a modified version of its Corresponding Source. The information must
|
361 |
+
suffice to ensure that the continued functioning of the modified object
|
362 |
+
code is in no case prevented or interfered with solely because
|
363 |
+
modification has been made.
|
364 |
+
|
365 |
+
If you convey an object code work under this section in, or with, or
|
366 |
+
specifically for use in, a User Product, and the conveying occurs as
|
367 |
+
part of a transaction in which the right of possession and use of the
|
368 |
+
User Product is transferred to the recipient in perpetuity or for a
|
369 |
+
fixed term (regardless of how the transaction is characterized), the
|
370 |
+
Corresponding Source conveyed under this section must be accompanied
|
371 |
+
by the Installation Information. But this requirement does not apply
|
372 |
+
if neither you nor any third party retains the ability to install
|
373 |
+
modified object code on the User Product (for example, the work has
|
374 |
+
been installed in ROM).
|
375 |
+
|
376 |
+
The requirement to provide Installation Information does not include a
|
377 |
+
requirement to continue to provide support service, warranty, or updates
|
378 |
+
for a work that has been modified or installed by the recipient, or for
|
379 |
+
the User Product in which it has been modified or installed. Access to a
|
380 |
+
network may be denied when the modification itself materially and
|
381 |
+
adversely affects the operation of the network or violates the rules and
|
382 |
+
protocols for communication across the network.
|
383 |
+
|
384 |
+
Corresponding Source conveyed, and Installation Information provided,
|
385 |
+
in accord with this section must be in a format that is publicly
|
386 |
+
documented (and with an implementation available to the public in
|
387 |
+
source code form), and must require no special password or key for
|
388 |
+
unpacking, reading or copying.
|
389 |
+
|
390 |
+
7. Additional Terms.
|
391 |
+
|
392 |
+
"Additional permissions" are terms that supplement the terms of this
|
393 |
+
License by making exceptions from one or more of its conditions.
|
394 |
+
Additional permissions that are applicable to the entire Program shall
|
395 |
+
be treated as though they were included in this License, to the extent
|
396 |
+
that they are valid under applicable law. If additional permissions
|
397 |
+
apply only to part of the Program, that part may be used separately
|
398 |
+
under those permissions, but the entire Program remains governed by
|
399 |
+
this License without regard to the additional permissions.
|
400 |
+
|
401 |
+
When you convey a copy of a covered work, you may at your option
|
402 |
+
remove any additional permissions from that copy, or from any part of
|
403 |
+
it. (Additional permissions may be written to require their own
|
404 |
+
removal in certain cases when you modify the work.) You may place
|
405 |
+
additional permissions on material, added by you to a covered work,
|
406 |
+
for which you have or can give appropriate copyright permission.
|
407 |
+
|
408 |
+
Notwithstanding any other provision of this License, for material you
|
409 |
+
add to a covered work, you may (if authorized by the copyright holders of
|
410 |
+
that material) supplement the terms of this License with terms:
|
411 |
+
|
412 |
+
a) Disclaiming warranty or limiting liability differently from the
|
413 |
+
terms of sections 15 and 16 of this License; or
|
414 |
+
|
415 |
+
b) Requiring preservation of specified reasonable legal notices or
|
416 |
+
author attributions in that material or in the Appropriate Legal
|
417 |
+
Notices displayed by works containing it; or
|
418 |
+
|
419 |
+
c) Prohibiting misrepresentation of the origin of that material, or
|
420 |
+
requiring that modified versions of such material be marked in
|
421 |
+
reasonable ways as different from the original version; or
|
422 |
+
|
423 |
+
d) Limiting the use for publicity purposes of names of licensors or
|
424 |
+
authors of the material; or
|
425 |
+
|
426 |
+
e) Declining to grant rights under trademark law for use of some
|
427 |
+
trade names, trademarks, or service marks; or
|
428 |
+
|
429 |
+
f) Requiring indemnification of licensors and authors of that
|
430 |
+
material by anyone who conveys the material (or modified versions of
|
431 |
+
it) with contractual assumptions of liability to the recipient, for
|
432 |
+
any liability that these contractual assumptions directly impose on
|
433 |
+
those licensors and authors.
|
434 |
+
|
435 |
+
All other non-permissive additional terms are considered "further
|
436 |
+
restrictions" within the meaning of section 10. If the Program as you
|
437 |
+
received it, or any part of it, contains a notice stating that it is
|
438 |
+
governed by this License along with a term that is a further
|
439 |
+
restriction, you may remove that term. If a license document contains
|
440 |
+
a further restriction but permits relicensing or conveying under this
|
441 |
+
License, you may add to a covered work material governed by the terms
|
442 |
+
of that license document, provided that the further restriction does
|
443 |
+
not survive such relicensing or conveying.
|
444 |
+
|
445 |
+
If you add terms to a covered work in accord with this section, you
|
446 |
+
must place, in the relevant source files, a statement of the
|
447 |
+
additional terms that apply to those files, or a notice indicating
|
448 |
+
where to find the applicable terms.
|
449 |
+
|
450 |
+
Additional terms, permissive or non-permissive, may be stated in the
|
451 |
+
form of a separately written license, or stated as exceptions;
|
452 |
+
the above requirements apply either way.
|
453 |
+
|
454 |
+
8. Termination.
|
455 |
+
|
456 |
+
You may not propagate or modify a covered work except as expressly
|
457 |
+
provided under this License. Any attempt otherwise to propagate or
|
458 |
+
modify it is void, and will automatically terminate your rights under
|
459 |
+
this License (including any patent licenses granted under the third
|
460 |
+
paragraph of section 11).
|
461 |
+
|
462 |
+
However, if you cease all violation of this License, then your
|
463 |
+
license from a particular copyright holder is reinstated (a)
|
464 |
+
provisionally, unless and until the copyright holder explicitly and
|
465 |
+
finally terminates your license, and (b) permanently, if the copyright
|
466 |
+
holder fails to notify you of the violation by some reasonable means
|
467 |
+
prior to 60 days after the cessation.
|
468 |
+
|
469 |
+
Moreover, your license from a particular copyright holder is
|
470 |
+
reinstated permanently if the copyright holder notifies you of the
|
471 |
+
violation by some reasonable means, this is the first time you have
|
472 |
+
received notice of violation of this License (for any work) from that
|
473 |
+
copyright holder, and you cure the violation prior to 30 days after
|
474 |
+
your receipt of the notice.
|
475 |
+
|
476 |
+
Termination of your rights under this section does not terminate the
|
477 |
+
licenses of parties who have received copies or rights from you under
|
478 |
+
this License. If your rights have been terminated and not permanently
|
479 |
+
reinstated, you do not qualify to receive new licenses for the same
|
480 |
+
material under section 10.
|
481 |
+
|
482 |
+
9. Acceptance Not Required for Having Copies.
|
483 |
+
|
484 |
+
You are not required to accept this License in order to receive or
|
485 |
+
run a copy of the Program. Ancillary propagation of a covered work
|
486 |
+
occurring solely as a consequence of using peer-to-peer transmission
|
487 |
+
to receive a copy likewise does not require acceptance. However,
|
488 |
+
nothing other than this License grants you permission to propagate or
|
489 |
+
modify any covered work. These actions infringe copyright if you do
|
490 |
+
not accept this License. Therefore, by modifying or propagating a
|
491 |
+
covered work, you indicate your acceptance of this License to do so.
|
492 |
+
|
493 |
+
10. Automatic Licensing of Downstream Recipients.
|
494 |
+
|
495 |
+
Each time you convey a covered work, the recipient automatically
|
496 |
+
receives a license from the original licensors, to run, modify and
|
497 |
+
propagate that work, subject to this License. You are not responsible
|
498 |
+
for enforcing compliance by third parties with this License.
|
499 |
+
|
500 |
+
An "entity transaction" is a transaction transferring control of an
|
501 |
+
organization, or substantially all assets of one, or subdividing an
|
502 |
+
organization, or merging organizations. If propagation of a covered
|
503 |
+
work results from an entity transaction, each party to that
|
504 |
+
transaction who receives a copy of the work also receives whatever
|
505 |
+
licenses to the work the party's predecessor in interest had or could
|
506 |
+
give under the previous paragraph, plus a right to possession of the
|
507 |
+
Corresponding Source of the work from the predecessor in interest, if
|
508 |
+
the predecessor has it or can get it with reasonable efforts.
|
509 |
+
|
510 |
+
You may not impose any further restrictions on the exercise of the
|
511 |
+
rights granted or affirmed under this License. For example, you may
|
512 |
+
not impose a license fee, royalty, or other charge for exercise of
|
513 |
+
rights granted under this License, and you may not initiate litigation
|
514 |
+
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
515 |
+
any patent claim is infringed by making, using, selling, offering for
|
516 |
+
sale, or importing the Program or any portion of it.
|
517 |
+
|
518 |
+
11. Patents.
|
519 |
+
|
520 |
+
A "contributor" is a copyright holder who authorizes use under this
|
521 |
+
License of the Program or a work on which the Program is based. The
|
522 |
+
work thus licensed is called the contributor's "contributor version".
|
523 |
+
|
524 |
+
A contributor's "essential patent claims" are all patent claims
|
525 |
+
owned or controlled by the contributor, whether already acquired or
|
526 |
+
hereafter acquired, that would be infringed by some manner, permitted
|
527 |
+
by this License, of making, using, or selling its contributor version,
|
528 |
+
but do not include claims that would be infringed only as a
|
529 |
+
consequence of further modification of the contributor version. For
|
530 |
+
purposes of this definition, "control" includes the right to grant
|
531 |
+
patent sublicenses in a manner consistent with the requirements of
|
532 |
+
this License.
|
533 |
+
|
534 |
+
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
535 |
+
patent license under the contributor's essential patent claims, to
|
536 |
+
make, use, sell, offer for sale, import and otherwise run, modify and
|
537 |
+
propagate the contents of its contributor version.
|
538 |
+
|
539 |
+
In the following three paragraphs, a "patent license" is any express
|
540 |
+
agreement or commitment, however denominated, not to enforce a patent
|
541 |
+
(such as an express permission to practice a patent or covenant not to
|
542 |
+
sue for patent infringement). To "grant" such a patent license to a
|
543 |
+
party means to make such an agreement or commitment not to enforce a
|
544 |
+
patent against the party.
|
545 |
+
|
546 |
+
If you convey a covered work, knowingly relying on a patent license,
|
547 |
+
and the Corresponding Source of the work is not available for anyone
|
548 |
+
to copy, free of charge and under the terms of this License, through a
|
549 |
+
publicly available network server or other readily accessible means,
|
550 |
+
then you must either (1) cause the Corresponding Source to be so
|
551 |
+
available, or (2) arrange to deprive yourself of the benefit of the
|
552 |
+
patent license for this particular work, or (3) arrange, in a manner
|
553 |
+
consistent with the requirements of this License, to extend the patent
|
554 |
+
license to downstream recipients. "Knowingly relying" means you have
|
555 |
+
actual knowledge that, but for the patent license, your conveying the
|
556 |
+
covered work in a country, or your recipient's use of the covered work
|
557 |
+
in a country, would infringe one or more identifiable patents in that
|
558 |
+
country that you have reason to believe are valid.
|
559 |
+
|
560 |
+
If, pursuant to or in connection with a single transaction or
|
561 |
+
arrangement, you convey, or propagate by procuring conveyance of, a
|
562 |
+
covered work, and grant a patent license to some of the parties
|
563 |
+
receiving the covered work authorizing them to use, propagate, modify
|
564 |
+
or convey a specific copy of the covered work, then the patent license
|
565 |
+
you grant is automatically extended to all recipients of the covered
|
566 |
+
work and works based on it.
|
567 |
+
|
568 |
+
A patent license is "discriminatory" if it does not include within
|
569 |
+
the scope of its coverage, prohibits the exercise of, or is
|
570 |
+
conditioned on the non-exercise of one or more of the rights that are
|
571 |
+
specifically granted under this License. You may not convey a covered
|
572 |
+
work if you are a party to an arrangement with a third party that is
|
573 |
+
in the business of distributing software, under which you make payment
|
574 |
+
to the third party based on the extent of your activity of conveying
|
575 |
+
the work, and under which the third party grants, to any of the
|
576 |
+
parties who would receive the covered work from you, a discriminatory
|
577 |
+
patent license (a) in connection with copies of the covered work
|
578 |
+
conveyed by you (or copies made from those copies), or (b) primarily
|
579 |
+
for and in connection with specific products or compilations that
|
580 |
+
contain the covered work, unless you entered into that arrangement,
|
581 |
+
or that patent license was granted, prior to 28 March 2007.
|
582 |
+
|
583 |
+
Nothing in this License shall be construed as excluding or limiting
|
584 |
+
any implied license or other defenses to infringement that may
|
585 |
+
otherwise be available to you under applicable patent law.
|
586 |
+
|
587 |
+
12. No Surrender of Others' Freedom.
|
588 |
+
|
589 |
+
If conditions are imposed on you (whether by court order, agreement or
|
590 |
+
otherwise) that contradict the conditions of this License, they do not
|
591 |
+
excuse you from the conditions of this License. If you cannot convey a
|
592 |
+
covered work so as to satisfy simultaneously your obligations under this
|
593 |
+
License and any other pertinent obligations, then as a consequence you may
|
594 |
+
not convey it at all. For example, if you agree to terms that obligate you
|
595 |
+
to collect a royalty for further conveying from those to whom you convey
|
596 |
+
the Program, the only way you could satisfy both those terms and this
|
597 |
+
License would be to refrain entirely from conveying the Program.
|
598 |
+
|
599 |
+
13. Use with the GNU Affero General Public License.
|
600 |
+
|
601 |
+
Notwithstanding any other provision of this License, you have
|
602 |
+
permission to link or combine any covered work with a work licensed
|
603 |
+
under version 3 of the GNU Affero General Public License into a single
|
604 |
+
combined work, and to convey the resulting work. The terms of this
|
605 |
+
License will continue to apply to the part which is the covered work,
|
606 |
+
but the special requirements of the GNU Affero General Public License,
|
607 |
+
section 13, concerning interaction through a network will apply to the
|
608 |
+
combination as such.
|
609 |
+
|
610 |
+
14. Revised Versions of this License.
|
611 |
+
|
612 |
+
The Free Software Foundation may publish revised and/or new versions of
|
613 |
+
the GNU General Public License from time to time. Such new versions will
|
614 |
+
be similar in spirit to the present version, but may differ in detail to
|
615 |
+
address new problems or concerns.
|
616 |
+
|
617 |
+
Each version is given a distinguishing version number. If the
|
618 |
+
Program specifies that a certain numbered version of the GNU General
|
619 |
+
Public License "or any later version" applies to it, you have the
|
620 |
+
option of following the terms and conditions either of that numbered
|
621 |
+
version or of any later version published by the Free Software
|
622 |
+
Foundation. If the Program does not specify a version number of the
|
623 |
+
GNU General Public License, you may choose any version ever published
|
624 |
+
by the Free Software Foundation.
|
625 |
+
|
626 |
+
If the Program specifies that a proxy can decide which future
|
627 |
+
versions of the GNU General Public License can be used, that proxy's
|
628 |
+
public statement of acceptance of a version permanently authorizes you
|
629 |
+
to choose that version for the Program.
|
630 |
+
|
631 |
+
Later license versions may give you additional or different
|
632 |
+
permissions. However, no additional obligations are imposed on any
|
633 |
+
author or copyright holder as a result of your choosing to follow a
|
634 |
+
later version.
|
635 |
+
|
636 |
+
15. Disclaimer of Warranty.
|
637 |
+
|
638 |
+
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
639 |
+
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
640 |
+
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
641 |
+
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
642 |
+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
643 |
+
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
644 |
+
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
645 |
+
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
646 |
+
|
647 |
+
16. Limitation of Liability.
|
648 |
+
|
649 |
+
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
650 |
+
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
651 |
+
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
652 |
+
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
653 |
+
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
654 |
+
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
655 |
+
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
656 |
+
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
657 |
+
SUCH DAMAGES.
|
658 |
+
|
659 |
+
17. Interpretation of Sections 15 and 16.
|
660 |
+
|
661 |
+
If the disclaimer of warranty and limitation of liability provided
|
662 |
+
above cannot be given local legal effect according to their terms,
|
663 |
+
reviewing courts shall apply local law that most closely approximates
|
664 |
+
an absolute waiver of all civil liability in connection with the
|
665 |
+
Program, unless a warranty or assumption of liability accompanies a
|
666 |
+
copy of the Program in return for a fee.
|
667 |
+
|
668 |
+
END OF TERMS AND CONDITIONS
|
669 |
+
|
670 |
+
How to Apply These Terms to Your New Programs
|
671 |
+
|
672 |
+
If you develop a new program, and you want it to be of the greatest
|
673 |
+
possible use to the public, the best way to achieve this is to make it
|
674 |
+
free software which everyone can redistribute and change under these terms.
|
675 |
+
|
676 |
+
To do so, attach the following notices to the program. It is safest
|
677 |
+
to attach them to the start of each source file to most effectively
|
678 |
+
state the exclusion of warranty; and each file should have at least
|
679 |
+
the "copyright" line and a pointer to where the full notice is found.
|
680 |
+
|
681 |
+
<one line to give the program's name and a brief idea of what it does.>
|
682 |
+
Copyright (C) <year> <name of author>
|
683 |
+
|
684 |
+
This program is free software: you can redistribute it and/or modify
|
685 |
+
it under the terms of the GNU General Public License as published by
|
686 |
+
the Free Software Foundation, either version 3 of the License, or
|
687 |
+
(at your option) any later version.
|
688 |
+
|
689 |
+
This program is distributed in the hope that it will be useful,
|
690 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
691 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
692 |
+
GNU General Public License for more details.
|
693 |
+
|
694 |
+
You should have received a copy of the GNU General Public License
|
695 |
+
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
696 |
+
|
697 |
+
Also add information on how to contact you by electronic and paper mail.
|
698 |
+
|
699 |
+
If the program does terminal interaction, make it output a short
|
700 |
+
notice like this when it starts in an interactive mode:
|
701 |
+
|
702 |
+
<program> Copyright (C) <year> <name of author>
|
703 |
+
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
704 |
+
This is free software, and you are welcome to redistribute it
|
705 |
+
under certain conditions; type `show c' for details.
|
706 |
+
|
707 |
+
The hypothetical commands `show w' and `show c' should show the appropriate
|
708 |
+
parts of the General Public License. Of course, your program's commands
|
709 |
+
might be different; for a GUI interface, you would use an "about box".
|
710 |
+
|
711 |
+
You should also get your employer (if you work as a programmer) or school,
|
712 |
+
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
713 |
+
For more information on this, and how to apply and follow the GNU GPL, see
|
714 |
+
<http://www.gnu.org/licenses/>.
|
715 |
+
|
716 |
+
The GNU General Public License does not permit incorporating your program
|
717 |
+
into proprietary programs. If your program is a subroutine library, you
|
718 |
+
may consider it more useful to permit linking proprietary applications with
|
719 |
+
the library. If this is what you want to do, use the GNU Lesser General
|
720 |
+
Public License instead of this License. But first, please read
|
721 |
+
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
flowplayer/README.txt
ADDED
@@ -0,0 +1,302 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Version history:
|
2 |
+
|
3 |
+
3.2.2
|
4 |
+
-----
|
5 |
+
Fixes:
|
6 |
+
- Now recognizes following kind of urls as audio clips: 'mp3:audiostreamname' (ulrs with mp3 prefix and no extension)
|
7 |
+
- Now ignores the duration from metadata if we already got one. Fix required for pseudostreaming
|
8 |
+
- Fix to reuse buffered data when replaying a clip
|
9 |
+
|
10 |
+
3.2.1
|
11 |
+
---------
|
12 |
+
- Support for RTMP redirects (tested with Wowza loadbalancing)
|
13 |
+
- Fixed video size when no size info available in clip metadata
|
14 |
+
|
15 |
+
Fixes:
|
16 |
+
- Fix to correctly detect if the player SWF name contains a version number and if it does also use the version number
|
17 |
+
when it automatically loads the controls plugin.
|
18 |
+
|
19 |
+
3.2.0
|
20 |
+
-----
|
21 |
+
- canvas, controlbar and the content plugin backgound color and border color can be now given with rgb() and rgba() CSS style syntax
|
22 |
+
- Added onMouseOver() and onMouseOut() listener registration methods to the Flowplayer API
|
23 |
+
- enhancements to RSS playlist. Converted parsing to E4X, yahoo media and flowplayer namespace support.
|
24 |
+
- added feature to obtain bitrate and dimension information to a new clip custom property "bitrates" for future support for bitrate choosing.
|
25 |
+
- added getter for playerSwfName config
|
26 |
+
- if clip.url has the string "mp3:" in it, the clip.type will report 'audio'
|
27 |
+
- added setKeyboardShortcutsEnabled(), addKeyListener(), removeKeyListener() to FlowplayerBase
|
28 |
+
Fixes:
|
29 |
+
- onSeek() was not fired when seeking while paused and when using RTMP. An extra onStart was fired too.
|
30 |
+
- fireErrorExternal() was not working properly with an error PlayerEvent
|
31 |
+
- countPlugins() was throwing an error when a plugin was not found
|
32 |
+
- external swf files were not scaled properly
|
33 |
+
- the logo was unnecessary shown when going fullscreen if logo.displayTime was being used
|
34 |
+
- added a loadPluginWithConfig method to FlowplayerBase, accessible from javascript. Fixed double onload callback call.
|
35 |
+
- now handles cuepoint parameters injected using the Adobe Media Encoder
|
36 |
+
- showPlugin was not working when config.play was null
|
37 |
+
- handles 3-part duration values included in FLV metadata, like "500.123.123"
|
38 |
+
- player wasn't always reaching end of video
|
39 |
+
- fixed broken buffering: false
|
40 |
+
- fixed event dispatching when embedding flowplayer without flowplayer.js (=without playlist config field)
|
41 |
+
- fixed safari crashes when unloading player
|
42 |
+
- fixed scrubber behaviour with a playlist containing 2 images (or swf) in a row
|
43 |
+
- fixed errors in logs when using an RSS playlist
|
44 |
+
- fixed OverlayPlayButton that was showing even if it shouldn't on some cases
|
45 |
+
- fixed wrong behavior when onBeforeFinish was returning false within playlists
|
46 |
+
- /!\ Don't use the fadeIn / fadeOut controlbar's API while using autoHide.
|
47 |
+
- fixed play state button with images
|
48 |
+
- fixed splash image flickering
|
49 |
+
|
50 |
+
3.1.5
|
51 |
+
-----
|
52 |
+
Fixes:
|
53 |
+
- The player went to a locked state when resuming playback after a period that was long enought to send the
|
54 |
+
netConnection to an invalid state. Now when resuming playback on an invalid connection the clip starts again from
|
55 |
+
the beginning. This is only when using RTMP connections and does not affect progressive download playback.
|
56 |
+
- Custom netConnect and netStream events did not pass the info object to JS listeners
|
57 |
+
|
58 |
+
3.1.4
|
59 |
+
-----
|
60 |
+
Fixes:
|
61 |
+
- player did not initialize if the controlbar plugin was disabled and if the play button overlay was disabled with play: null
|
62 |
+
- works properly without cachebusting on IE
|
63 |
+
- RSS playlist parsing now respects the isDefault attribute used in mRSS media group items
|
64 |
+
- Fixed passing of connection arguments
|
65 |
+
|
66 |
+
3.1.3
|
67 |
+
-----
|
68 |
+
- enhancements to RSS playlist parsing: Now skips all media:content that have unsupported types. Now the type attribute
|
69 |
+
of the media:content element is mandatory and has to be present in the RSS file
|
70 |
+
- Possibility to pass a RSS file name with playFeed("playlist.rss") and setPlaylist("playlist.rss") calls.
|
71 |
+
- changes to the ConnectionProvider and URLResolver APIs
|
72 |
+
- Now automatically uses a plugin that is called 'rtmp' for all clips that have the rtmp-protocol in their URLs.
|
73 |
+
- Added possibility to specify all clip properties in an RSS playlist
|
74 |
+
|
75 |
+
Fixes:
|
76 |
+
- the result of URL resolvers in now cached, and the resolvers will not be used again when a clip is replayed
|
77 |
+
- some style properties like 'backgroundGradient' had no effect in config
|
78 |
+
- video goes tiny on Firefox: http://flowplayer.org/forum/8/23226
|
79 |
+
- RSS playlists: The 'type' attribute value 'audio/mp3' in the media:content element caused an error.
|
80 |
+
- Dispatches onMetadata() if an URL resolver changes the clip URL (changes to a different file)
|
81 |
+
- error codes and error message were not properly passed to onEvent JS listeners
|
82 |
+
|
83 |
+
3.1.2
|
84 |
+
-----
|
85 |
+
- The domain of the logo url must the same domain from where the player SWF is loaded from.
|
86 |
+
- Fullscreen can be toggled by doublclick on the video area.
|
87 |
+
Fixes:
|
88 |
+
- Player was not initialized correctly when instream playlists were used and the provider used in the instream clips was defined in the common clip.
|
89 |
+
- A separator in the Context Menu made the callbacks in the following menu items out of order. Related forum post: http://flowplayer.org/forum/8/22541
|
90 |
+
- the width and height settings of a logo were ignored if the logo was a sWF file
|
91 |
+
- volume control and mute/unmute were not working after an instream clip had been played
|
92 |
+
- now possible to use RTMP for mp3 files
|
93 |
+
- Issue 12: cuepointMultiplier was undefined in the clip object set to JS event listeners
|
94 |
+
- Issue 14: onBeforeStop was unnecessarily fired when calling setPlaylist() and the player was not playing,
|
95 |
+
additionally onStop was never fired even if onBeforeStop was
|
96 |
+
- fixed screen vertical placement problems that reappeared with 3.1.1
|
97 |
+
- The rotating animation now has the same size and position as it has after initialized
|
98 |
+
|
99 |
+
3.1.1
|
100 |
+
-----
|
101 |
+
- External configuration files
|
102 |
+
- Instream playback
|
103 |
+
- Added toggleFullscreen() the API
|
104 |
+
- Possibility to specify controls configuration in clips
|
105 |
+
- Seek target position is now sent in the onBeforeSeek event
|
106 |
+
Fixes:
|
107 |
+
- The screen size was initially too small on Firefox (Mac)
|
108 |
+
- Did not persist a zero volume value: http://www.flowplayer.org/forum/8/18413
|
109 |
+
|
110 |
+
3.1.0
|
111 |
+
-----
|
112 |
+
New features:
|
113 |
+
- clip's can have urlResolvers and connectionProviders
|
114 |
+
- Added new configuration options 'connectionCallbacks' and 'streamCallbacks'. Both accept an Array of event names as a value.
|
115 |
+
When these events get fired on the connection or stream object, corresponding Clip events will be fired by the player.
|
116 |
+
This can be used for example when firing custom events from RTMP server apps
|
117 |
+
- Added new clip event types: 'onConnectionEvent' and 'onStreamEvent' these get fired when the predefined events happen on the connection and stream objects.
|
118 |
+
- Added Security.allowDomain() to allow loaded plugins to script the player
|
119 |
+
- Added addClip(clip, index) to the API, index is optional
|
120 |
+
- Possibility to view videos without metadata, using clip.metaData: false
|
121 |
+
- Now the player's preloader uses the rotating animation instead of a percent text to indicate the progress
|
122 |
+
of loading the player SWF. You can disable the aninamtion by setting buffering: false
|
123 |
+
- calling close() now does not send the onStop event
|
124 |
+
- Clip's custom properties are now present in the root of the clip argument in all clip events that are sent to JS.
|
125 |
+
|
126 |
+
Bug fixes:
|
127 |
+
- The preloader sometimes failed to initialize the player
|
128 |
+
- Allow seeking while in buffering state: http://flowplayer.org/forum/8/16505
|
129 |
+
- Replay of a RTMP stream was failing after the connection had expired
|
130 |
+
- Security error when clicking on the screen if there is an image in the playlist loaded from a foreign domain
|
131 |
+
- loadPlugin() was not working
|
132 |
+
- now fullscreen works with Flash versions older than 9.0.115, in versions that do not support hardware scaling
|
133 |
+
- replaying a RTMP stream with an image in front of the stream in the playlist was not working (video stayed hidden). Happened
|
134 |
+
because the server does not send metadata if replaying the same stream.
|
135 |
+
- the scrubber is disabled if the clip is not seekable in the first frame: http://flowplayer.org/forum/8/16526
|
136 |
+
By default if the clip has one of following extensions (the typical flash video extensions) it is seekable
|
137 |
+
in the first frame: 'f4b', 'f4p', 'f4v', 'flv'. Added new clip property seekableOnBegin that can be used to override the default.
|
138 |
+
|
139 |
+
3.0.6
|
140 |
+
-----
|
141 |
+
- added possibility to associate a linkUrl and linkWindow to the canvas
|
142 |
+
Fixes:
|
143 |
+
- fix for entering fullscreen for Flash versions that don't support the hardware scaled fullscreen-mode
|
144 |
+
- when showing images the duration tracking starts only after the image has been completely loaded: http://flowplayer.org/forum/2/15301
|
145 |
+
- fix for verifying license keys for domains that have more than 4 labels in them
|
146 |
+
- if plugin loading failis because of a IO error, the plugin will be discarded and the player initialization continues:
|
147 |
+
|
148 |
+
3.0.4
|
149 |
+
-----
|
150 |
+
- The "play" pseudo-plugin now supports fadeIn(), fadeOut(), showPlugin(), hidePlugin() and
|
151 |
+
additionally you can configure it like this:
|
152 |
+
// make only the play button invisible (buffering animation is still used)
|
153 |
+
play: { display: 'none' }
|
154 |
+
// disable the play button and the buffering animation
|
155 |
+
play: null
|
156 |
+
// disable the buffering animation
|
157 |
+
buffering: null
|
158 |
+
- Added possibility to seek when in the buffering state: http://flowplayer.org/forum/3/13896
|
159 |
+
- Added copyright notices and other GPL required entries to the user interface
|
160 |
+
|
161 |
+
Fixes:
|
162 |
+
- clip urls were not resolved correctly if the HTML page URL had a query string starting with a question mark (http://flowplayer.org/forum/8/14016#post-14016)
|
163 |
+
- Fixed context menu for with IE (commercial version)
|
164 |
+
- a cuepoint at time zero was fired several times
|
165 |
+
- screen is now arranged correctly even when only bottom or top is defined for it in the configuration
|
166 |
+
- Fixed context menu for with IE (commercial version)
|
167 |
+
- a cuepoint at time zero was fired several times
|
168 |
+
- screen is now arranged correctly even when only bottom or top is defined for it in the configuration
|
169 |
+
- Now possible to call play() in an onError handler: http://flowplayer.org/forum/8/12939
|
170 |
+
- Does not throw an error if the player cannot persist the volume on the client computer: http://flowplayer.org/forum/8/13286#post-13495
|
171 |
+
- Triggering fullscreen does not pause the player in IE
|
172 |
+
- The play button overlay no longer has a gap between it's pieces when a label is used: http://flowplayer.org/forum/8/14250
|
173 |
+
- clip.update() JS call now resets the duration
|
174 |
+
- a label configured for the play button overlay did not work in the commercial version
|
175 |
+
|
176 |
+
3.0.3
|
177 |
+
-----
|
178 |
+
- fixed cuepoint firing: Does not skip cuepoints any more
|
179 |
+
- Plugins can now be loaded from a different domain to the flowplayer.swf
|
180 |
+
- Specifying a clip to play by just using the 'clip' node in the configuration was not working, a playlist definition was required. This is now fixed.
|
181 |
+
- Fixed: A playlist with different providers caused the onMetadata event to fire events with metadata from the previous clip in the playlist. Occurred when moving in the playlist with next() and prev()
|
182 |
+
- the opacity setting now works with the logo
|
183 |
+
- fadeOut() call to the "screen" plugin was sending the listenerId and pluginName arguments in wrong order
|
184 |
+
- stop(), pause(), resume(), close() no longer return the flowplayer object to JS
|
185 |
+
- changing the size of the screen in a onFullscreen listener now always works, there was a bug that caused this to fail occasionally
|
186 |
+
- fixed using arbitrary SWFs as plugins
|
187 |
+
- the API method setPlaylist() no longer starts playing if autoPlay: true, neither it starts buffering if autoBuffering: true
|
188 |
+
- the API method play() now accepts an array of clip objects as an argument, the playlist is replaced with the specified clips and playback starts from the 1st clip
|
189 |
+
|
190 |
+
3.0.2
|
191 |
+
-----
|
192 |
+
- setting play: null now works again
|
193 |
+
- pressing the play again button overlay does not open a linkUrl associated with a clip
|
194 |
+
- now displays a live feed even when the RTMP server does not send any metadata and the onStart method is not therefore dispatched
|
195 |
+
- added onMetaData clip event
|
196 |
+
- fixed 'orig' scaling: the player went to 'fit' scaling after coming back from fullscreen. This is now fixed and the original dimensions are preserved in non-fullscreen mode.
|
197 |
+
- cuepoint times are now given in milliseconds, the firing precision is 100 ms. All cuepoint times are rounded to the nearest 100 ms value (for example 1120 rounds to 1100)
|
198 |
+
- backgroundGradient was drawn over the background image in the canvas and in the content and controlbar plugins. Now it's drawn below the image.
|
199 |
+
- added cuepointMultiplier property to clips. This can be used to multiply the time values read from cuepoint metadata embedded into video files.
|
200 |
+
- the player's framerate was increased to 24 FPS, makes all animations smoother
|
201 |
+
|
202 |
+
3.0.1
|
203 |
+
-----
|
204 |
+
- Fixed negative cuepoints from common clip. Now these are properly propagated to the clips in playlist.
|
205 |
+
- buffering animation is now the same size as the play button overlay
|
206 |
+
- commercial version now supports license keys that allows the use of subdomains
|
207 |
+
- error messages are now automatically hidden after a 4 second delay. They are also hidden when a new clips
|
208 |
+
starts playing (when onBeforeBegin is fired)
|
209 |
+
- added possibility to disable the buffering animation like so: buffering: false
|
210 |
+
- pressing the play button overlay does not open a linkUrl associated with a clip
|
211 |
+
- license key verification failed if a port number was used in the URL (like in this url: http://mydomain.com:8080/video.html)
|
212 |
+
- added audio support, clip has a new "image" property
|
213 |
+
- workaround for missing "NetStream.Play.Start" notfication that was happending with Red5. Because of this issue the video was not shown.
|
214 |
+
- commercial version has the possibility to change the zIndex of the logo
|
215 |
+
|
216 |
+
3.0.0
|
217 |
+
-----
|
218 |
+
- Removed security errors that happened when loading images from foreign domains (domains other than the domain of the core SWF).
|
219 |
+
Using a backgroundImage on canvas, in the content plugin, and for the controls is also possible to be loaded
|
220 |
+
from a foreign domain - BUT backgroundRepeat cannot be used for foreign images.
|
221 |
+
- Now allows the embedding HTML to script the player even if the player is loaded from another domain.
|
222 |
+
- Added a 'live' property to Clips, used for live streams.
|
223 |
+
- A player embedded to a foreign domain now loads images, css files and other resources from the domain where the palyer SWF was loaded from. This is to generate shorter embed-codes.
|
224 |
+
- Added linkUrl and linkWindow properties to the logo, in commercial version you can set these to point to a linked page. The linked page gets opened
|
225 |
+
when the logo is clicked. Possible values for linkWindow:
|
226 |
+
* "_self" specifies the current frame in the current window.
|
227 |
+
* "_blank" specifies a new window.
|
228 |
+
* "_parent" specifies the parent of the current frame.
|
229 |
+
* "_top" specifies the top-level frame in the current window.
|
230 |
+
- Added linkUrl and linkWindow properties to clips. The linked page is opened when the video are is clicked and the corresponding clip has a linkUrl specified.
|
231 |
+
- Made the play button overlay and the "Play again" button slightly bigger.
|
232 |
+
|
233 |
+
RC4
|
234 |
+
---
|
235 |
+
- Now shows a "Play again" button at the end of the video/playlist
|
236 |
+
- Commercial version shows a Flowplayer logo if invalidKey was supplied, but the otherwise the player works
|
237 |
+
- setting play: null in configuration will disable the play button overlay
|
238 |
+
- setting opacity for "play" also sets it for the buffering animation
|
239 |
+
- Fixed firing of cuepoints too early. Cuepoint firing is now based on stream time and does not rely on timers
|
240 |
+
- added onXMPData event listener
|
241 |
+
- Should not stop playback too early before the clip is really completed
|
242 |
+
- The START event is now delayed so that the metadata is available when the event is fired, METADATA event was removed,
|
243 |
+
new event BEGIN that is dispatched when the playback has been successfully started. Metadata is not normally
|
244 |
+
available when BEGIN is fired.
|
245 |
+
|
246 |
+
RC3
|
247 |
+
---
|
248 |
+
- stopBuffering() now dispatches the onStop event first if the player is playing/paused/buffering at the time of calling it
|
249 |
+
- fixed detection of images based on file extensions
|
250 |
+
- fixed some issues with having images in the playlist
|
251 |
+
- made it possible to autoBuffer next video while showing an image (image without a duration)
|
252 |
+
|
253 |
+
RC2
|
254 |
+
---
|
255 |
+
- fixed: setting the screen height in configuration did not have any effect
|
256 |
+
|
257 |
+
RC1
|
258 |
+
-----
|
259 |
+
- better error message if plugin loading fails, shows the URL used
|
260 |
+
- validates our redesigned multidomain license key correctly
|
261 |
+
- fix to prevent the play button going visible when the onBufferEmpty event occurs
|
262 |
+
- the commercial swf now correctly loads the controls using version information
|
263 |
+
- fixed: the play button overlay became invisible with long fadeOutSpeeds
|
264 |
+
|
265 |
+
beta6
|
266 |
+
-----
|
267 |
+
- removed the onFirstFramePause event
|
268 |
+
- playing a clip for the second time caused a doubled sound
|
269 |
+
- pausing on first frame did not work on some FLV files
|
270 |
+
|
271 |
+
beta5
|
272 |
+
-----
|
273 |
+
- logo only uses percentage scaling if it's a SWF file (there is ".swf" in it's url)
|
274 |
+
- context menu now correctly builds up from string entries in configuration
|
275 |
+
-always closes the previous connection before starting a new clip
|
276 |
+
|
277 |
+
beta4
|
278 |
+
-----
|
279 |
+
- now it's possible to load a plugin into the panel without specifying any position/dimensions
|
280 |
+
information, the plugin is placed to left: "50%", top: "50%" and using the plugin DisplayObject's width & height
|
281 |
+
- The Flowplayer API was not fully initialized when onLoad was invoked on Flash plugins
|
282 |
+
|
283 |
+
beta3
|
284 |
+
-----
|
285 |
+
- tweaking logo placement
|
286 |
+
- "play" did not show up after repeated pause/resume
|
287 |
+
- player now loads the latest controls SWF version, right now the latest SWF is called 'flowplayer.controls-3.0.0-beta2.swf'
|
288 |
+
|
289 |
+
beta2
|
290 |
+
-----
|
291 |
+
- fixed support for RTMP stream groups
|
292 |
+
- changed to loop through available fonts in order to find a suitable font also in IE
|
293 |
+
- Preloader was broken on IE: When the player SWf was in browser's cache it did not initialize properly
|
294 |
+
- Context menu now correctly handles menu items that are configured by their string labels only (not using json objects)
|
295 |
+
- fixed custom logo positioning (was moved to the left edge of screen in fullscreen)
|
296 |
+
- "play" now always follows the position and size of the screen
|
297 |
+
- video was stretched below the controls in fullscreen when autoHide: 'never'
|
298 |
+
- logo now takes 6.5% of the screen height, width is scaled so that the aspect ratio is preserved
|
299 |
+
|
300 |
+
beta1
|
301 |
+
-----
|
302 |
+
- First public beta release
|
flowplayer/commercial/LICENSE_COMMERCIAL.txt
ADDED
@@ -0,0 +1,166 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FLOWPLAYER COMMERCIAL LICENSE version 0.1
|
2 |
+
==========================================
|
3 |
+
Copyright (c) 2008 Flowplayer Ltd, all rights reserved
|
4 |
+
|
5 |
+
Please read this License carefully before using, downloading or installing
|
6 |
+
the Software (Flowplayer, as defined below). By using, downloading or
|
7 |
+
installing the Software, Licensee is agreeing to be bound by this License
|
8 |
+
and the licenses granted hereunder are subject to compliance with any and
|
9 |
+
all terms of this License. IF YOU DO NOT ACCEPT THE TERMS AND CONDITIONS
|
10 |
+
OF THIS LICENSE, DO NOT USE, DOWNLOAD, INSTALL OR DISTRIBUTE ANY OF THE
|
11 |
+
LICENSED SOFTWARE.
|
12 |
+
|
13 |
+
Terms and definitions
|
14 |
+
=====================
|
15 |
+
|
16 |
+
"Software" means the licensed Flowplayer software
|
17 |
+
|
18 |
+
"Adaptation" means a derivative work based upon the Licensed Software resulting
|
19 |
+
from any addition to, editing of or deletion from the substance or structure of the
|
20 |
+
original source code or a compiled version of the Licensed Software or any previous
|
21 |
+
Adaptations or a work that programmatically interacts with the Licensed Software.
|
22 |
+
|
23 |
+
"Licensed Software" means the same as Software.
|
24 |
+
|
25 |
+
"License" means this document.
|
26 |
+
|
27 |
+
"Licensor" means Flowplayer Ltd.
|
28 |
+
|
29 |
+
"License Key" means an alphanumeric key that is used to activate the Sofware. The License
|
30 |
+
Key is provided by Licensor.
|
31 |
+
|
32 |
+
"Licensee" means an individual or entity exercising rights under and complying with the
|
33 |
+
terms of this License who has not previously violated the terms of this License with respect
|
34 |
+
to the Software, or who has received express permission from the Licensor to exercise rights
|
35 |
+
under this License despite a previous violation.
|
36 |
+
|
37 |
+
License Grant
|
38 |
+
=============
|
39 |
+
Licensor hereby grants the Licensee a non-exclusive, non-transferable, non-assignable license,
|
40 |
+
without the right to sublicense to: Access, display, integrate and use the Software in one
|
41 |
+
(1) Internet domain that has been registered with Licensor. Licensor provides a license key
|
42 |
+
that is tied to the domain name; and Make an Adaptation and access, display and integrate
|
43 |
+
it in the one (1) Internet domain that has been registered with Licensor. The Adaptation must
|
44 |
+
not remove the License Key logic from the Software so that the Adaptation only functions if a
|
45 |
+
valid license key has been configured for it.
|
46 |
+
|
47 |
+
Licensor hereby grants the Licensee a non-exclusive, worldwide, royalty-free, non-transferable,
|
48 |
+
non-assignable patent license, without the right to sublicense, under any patent rights
|
49 |
+
the Licensor holds in the Software to use, run, and modify the Software in the one (1) Internet
|
50 |
+
domain that has been registered with Licensor, provided that any Adaptation made to the Software
|
51 |
+
does not remove the License Key logic from the Software so that the Adaptation only functions
|
52 |
+
if a valid license key has been configured for it.
|
53 |
+
|
54 |
+
All rights not expressly granted by this Agreement are expressly reserved by Licensor.
|
55 |
+
|
56 |
+
Applicability of License
|
57 |
+
========================
|
58 |
+
|
59 |
+
This License applies to the Software version purchased by the Licensee.
|
60 |
+
Additional later versions released by the Licensor are not part of this License.
|
61 |
+
|
62 |
+
Protection of Licensed Software
|
63 |
+
===============================
|
64 |
+
|
65 |
+
Except as specifically set forth herein or as otherwise agreed to between Licensor and Licensee,
|
66 |
+
Licensee shall not have the right to copy, relicense, sell, lease, transfer, encumber, assign
|
67 |
+
or make available for public use the Software. Any attempt to take any such actions is void,
|
68 |
+
and will automatically terminate your rights under this License.
|
69 |
+
|
70 |
+
Licensee shall use its best efforts to ensure that no unauthorized copy of the Licensed Programs
|
71 |
+
shall be made, in whole or in part, in any form. Licensee shall prohibit all users of the Software
|
72 |
+
from modifying, reverse-engineering or disassembling any part of the Software. All rights not
|
73 |
+
expressly granted by Licensor are hereby reserved.
|
74 |
+
|
75 |
+
Effective Date
|
76 |
+
==============
|
77 |
+
|
78 |
+
The rights and licenses granted hereunder shall commence on the date any of the Software are
|
79 |
+
electronically delivered to Licensee. Licensor agrees to make the Software available for
|
80 |
+
electronic delivery to Licensee promptly after receipt by Licensor of the License Fee. For
|
81 |
+
purposes of this Agreement, the License Fee means the amount of money required to be paid
|
82 |
+
by Licensee to Licensor for legal usage of the Software under the terms of this agreement.
|
83 |
+
|
84 |
+
Termination of the license
|
85 |
+
==========================
|
86 |
+
|
87 |
+
This license is subject to termination by Licensor at any time if (a) Licensee violates any terms
|
88 |
+
of this License, (b) Licensor has a reasonable basis to believe that Licensee's business is
|
89 |
+
impairing Licensor's business.
|
90 |
+
|
91 |
+
Ownership of Intellectual Property
|
92 |
+
==================================
|
93 |
+
|
94 |
+
Licensor is the sole owner of all intellectual property rights pertaining to the Licensed Software.
|
95 |
+
Licensor reserves all rights not expressly granted herein.
|
96 |
+
|
97 |
+
NO WARRANTY
|
98 |
+
===========
|
99 |
+
|
100 |
+
TO THE FULLEST EXTENT PERMISSIBLE UNDER APPLICABLE LAW, THE LICENSED SOFTWARE IS PROVIDED TO YOU "AS IS,"
|
101 |
+
WITH ALL FAULTS, WITHOUT WARRANTY OF ANY KIND, AND YOUR USE IS AT YOUR SOLE RISK. THE ENTIRE RISK
|
102 |
+
OF SATISFACTORY QUALITY AND PERFORMANCE RESIDES WITH YOU. LICENSOR DISCLAIMS ANY AND ALL EXPRESS,
|
103 |
+
IMPLIED OR STATUTORY WARRANTIES, INCLUDING IMPLIED WARRANTIES OF MERCHANTABILITY, SATISFACTORY QUALITY,
|
104 |
+
FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT OF THIRD PARTY RIGHTS, ANY WARRANTIES OR CONDITIONS
|
105 |
+
OF TITLE, AND WARRANTIES (IF ANY) ARISING FROM A COURSE OF DEALING, USAGE, OR TRADE PRACTICE. LICENSOR
|
106 |
+
DOES NOT WARRANT AGAINST INTERFERENCE WITH YOUR ENJOYMENT OF THE PROGRAM; THAT THE PROGRAM WILL MEET
|
107 |
+
YOUR REQUIREMENTS; THAT OPERATION OF THE PROGRAM WILL BE UNINTERRUPTED OR ERROR-FREE, OR THAT THE PROGRAM
|
108 |
+
WILL BE COMPATIBLE WITH THIRD PARTY SOFTWARE OR THAT ANY ERRORS IN THE PROGRAM WILL BE CORRECTED. NO ORAL
|
109 |
+
OR WRITTEN ADVICE PROVIDED BY LICENSOR OR ANY AUTHORIZED REPRESENTATIVE SHALL CREATE A WARRANTY. SOME
|
110 |
+
JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF OR LIMITATIONS ON IMPLIED WARRANTIES OR THE LIMITATIONS
|
111 |
+
ON THE APPLICABLE STATUTORY RIGHTS OF A CONSUMER, SO SOME OR ALL OF THE ABOVE EXCLUSIONS AND LIMITATIONS
|
112 |
+
MAY NOT APPLY TO YOU. LICENSEE IS SOLELY RESPONSIBLE FOR DETERMINING THE APPROPRIATENESS OF USING AND
|
113 |
+
DISTRIBUTING THE LICENSED SOFTWARE AND ASSUMES ALL RISKS ASSOCIATED WITH ITS EXERCISE OF RIGHTS UNDER
|
114 |
+
THIS AGREEMENT, INCLUDING BUT NOT LIMITED TO THE RISKS AND COSTS OF PROGRAM ERRORS, COMPLIANCE WITH
|
115 |
+
APPLICABLE LAWS, DAMAGE TO OR LOSS OF DATA, PROGRAMS OR EQUIPMENT, SUITABILITY FOR HOSTING AND
|
116 |
+
UNAVAILABILITY OR INTERRUPTION OF OPERATIONS.
|
117 |
+
|
118 |
+
Limitation of Liability
|
119 |
+
=======================
|
120 |
+
Except to the extent required by applicable law, THE CUMULATIVE, AGGREGATE LIABILITY OF LICENSOR
|
121 |
+
TO LICENSEE FOR ALL CLAIMS RELATED TO THE LICENSED SOFTWARE AND THIS AGREEMENT, WILL NOT EXCEED
|
122 |
+
THE TOTAL AMOUNT OF ALL LICENSE FEES PAID TO LICENSOR HEREUNDER. LICENSOR WILL NOT IN ANY CASE
|
123 |
+
BE LIABLE FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, INDIRECT, PUNITIVE, OR EXEMPLARY DAMAGES
|
124 |
+
ARISING IN ANY WAY OUT OF THE USE OF THE PRODUCT, THE SERVICES OR THIS AGREEMENT, INCLUDING
|
125 |
+
WITHOUT LIMITATION, DAMAGES FOR LOST PROFIT, LOST REVENUE, LOSS OF USE, LOSS OF DATA, COSTS
|
126 |
+
OF RECREATING LOST DATA, THE COST OF ANY SUBSTITUTE EQUIPMENT, PROGRAM, OR DATA, OR CLAIMS
|
127 |
+
BY ANY THIRD PARTY, INCLUDING WITH LIMITATION THIRD PARTY CLAIMS OF INFRINGEMENT OF INTELLECTUAL
|
128 |
+
PROPERTY RIGHTS, INFRINGEMENT OF COPYRIGHT, TRADEMARK, PATENT, OR TRADE SECRETS. LICENSEE'S
|
129 |
+
SOLE AND EXCLUSIVE REMEDY IS SET FORTH IN THIS AGREEMENT. THE LIMITATION ON DAMAGES SET FORTH
|
130 |
+
IN SECTION WILL NOT APPLY TO INDEMNIFICATION OBLIGATIONS OR BREACHES BY LICENSEE.
|
131 |
+
|
132 |
+
Indemnity
|
133 |
+
=========
|
134 |
+
Licensee shall indemnify Licensor, its employees, officers, licensees and agents for all damages,
|
135 |
+
costs and expenses, including, without limitation, attorneys’ fees, arising from any claims arising
|
136 |
+
as a result of Licensee’s use of the Licensed Software, either as provided or as Adapted by Licensee.
|
137 |
+
|
138 |
+
Export
|
139 |
+
======
|
140 |
+
Licensee agrees and certifies that it will not export or re-export, directly or indirectly, the Licensed
|
141 |
+
Software contrary to the laws of the United States or any other country.
|
142 |
+
|
143 |
+
Severability
|
144 |
+
============
|
145 |
+
If for any reason a court of competent jurisdiction finds any provision of this License or portion
|
146 |
+
thereof, to be unenforceable, that provision of the License shall be enforced to the maximum extent
|
147 |
+
permissible so as to affect the intent of the parties, and the remainder of this License shall
|
148 |
+
continue in full force and effect.
|
149 |
+
|
150 |
+
Governing Law
|
151 |
+
=============
|
152 |
+
This License shall be governed by the laws of Finland. Any disputes arising under this License
|
153 |
+
shall be heard in the city of Espoo, Finland.
|
154 |
+
|
155 |
+
Complete Agreement
|
156 |
+
===================
|
157 |
+
This License constitutes the entire agreement between Licensor and Licensee with respect to the
|
158 |
+
use of the Licensed Software and supersedes all prior or contemporaneous understandings
|
159 |
+
or agreements, written or oral, regarding such subject matter. No one other than Licensor
|
160 |
+
has the right to modify or amend this License.
|
161 |
+
|
162 |
+
Waiver of Breach
|
163 |
+
================
|
164 |
+
No term or provision of this License shall be deemed waived and no breach excused, unless such
|
165 |
+
waiver or consent shall be in writing and signed by Licensor.
|
166 |
+
|
flowplayer/commercial/README.txt
ADDED
@@ -0,0 +1,255 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Version history:
|
2 |
+
|
3 |
+
3.1.5
|
4 |
+
-----
|
5 |
+
Fixes:
|
6 |
+
- The player went to a locked state when resuming playback after a period that was long enought to send the
|
7 |
+
netConnection to an invalid state. Now when resuming playback on an invalid connection the clip starts again from
|
8 |
+
the beginning. This is only when using RTMP connections and does not affect progressive download playback.
|
9 |
+
- Custom netConnect and netStream events did not pass the info object to JS listeners
|
10 |
+
|
11 |
+
3.1.4
|
12 |
+
-----
|
13 |
+
Fixes:
|
14 |
+
- player did not initialize if the controlbar plugin was disabled and if the play button overlay was disabled with play: null
|
15 |
+
- works properly without cachebusting on IE
|
16 |
+
- RSS playlist parsing now respects the isDefault attribute used in mRSS media group items
|
17 |
+
- Fixed passing of connection arguments
|
18 |
+
|
19 |
+
3.1.3
|
20 |
+
-----
|
21 |
+
- enhancements to RSS playlist parsing: Now skips all media:content that have unsupported types. Now the type attribute
|
22 |
+
of the media:content element is mandatory and has to be present in the RSS file
|
23 |
+
- Possibility to pass a RSS file name with playFeed("playlist.rss") and setPlaylist("playlist.rss") calls.
|
24 |
+
- changes to the ConnectionProvider and URLResolver APIs
|
25 |
+
- Now automatically uses a plugin that is called 'rtmp' for all clips that have the rtmp-protocol in their URLs.
|
26 |
+
- Added possibility to specify all clip properties in an RSS playlist
|
27 |
+
|
28 |
+
Fixes:
|
29 |
+
- the result of URL resolvers in now cached, and the resolvers will not be used again when a clip is replayed
|
30 |
+
- some style properties like 'backgroundGradient' had no effect in config
|
31 |
+
- video goes tiny on Firefox: http://flowplayer.org/forum/8/23226
|
32 |
+
- RSS playlists: The 'type' attribute value 'audio/mp3' in the media:content element caused an error.
|
33 |
+
- Dispatches onMetadata() if an URL resolver changes the clip URL (changes to a different file)
|
34 |
+
- error codes and error message were not properly passed to onEvent JS listeners
|
35 |
+
|
36 |
+
3.1.2
|
37 |
+
-----
|
38 |
+
- The domain of the logo url must the same domain from where the player SWF is loaded from.
|
39 |
+
- Fullscreen can be toggled by doublclick on the video area.
|
40 |
+
Fixes:
|
41 |
+
- Player was not initialized correctly when instream playlists were used and the provider used in the instream clips was defined in the common clip.
|
42 |
+
- A separator in the Context Menu made the callbacks in the following menu items out of order. Related forum post: http://flowplayer.org/forum/8/22541
|
43 |
+
- the width and height settings of a logo were ignored if the logo was a sWF file
|
44 |
+
- volume control and mute/unmute were not working after an instream clip had been played
|
45 |
+
- now possible to use RTMP for mp3 files
|
46 |
+
- Issue 12: cuepointMultiplier was undefined in the clip object set to JS event listeners
|
47 |
+
- Issue 14: onBeforeStop was unnecessarily fired when calling setPlaylist() and the player was not playing,
|
48 |
+
additionally onStop was never fired even if onBeforeStop was
|
49 |
+
- fixed screen vertical placement problems that reappeared with 3.1.1
|
50 |
+
- The rotating animation now has the same size and position as it has after initialized
|
51 |
+
|
52 |
+
3.1.1
|
53 |
+
-----
|
54 |
+
- External configuration files
|
55 |
+
- Instream playback
|
56 |
+
- Added toggleFullscreen() the API
|
57 |
+
- Possibility to specify controls configuration in clips
|
58 |
+
- Seek target position is now sent in the onBeforeSeek event
|
59 |
+
Fixes:
|
60 |
+
- The screen size was initially too small on Firefox (Mac)
|
61 |
+
- Did not persist a zero volume value: http://www.flowplayer.org/forum/8/18413
|
62 |
+
|
63 |
+
3.1.0
|
64 |
+
-----
|
65 |
+
New features:
|
66 |
+
- clip's can have urlResolvers and connectionProviders
|
67 |
+
- Added new configuration options 'connectionCallbacks' and 'streamCallbacks'. Both accept an Array of event names as a value.
|
68 |
+
When these events get fired on the connection or stream object, corresponding Clip events will be fired by the player.
|
69 |
+
This can be used for example when firing custom events from RTMP server apps
|
70 |
+
- Added new clip event types: 'onConnectionEvent' and 'onStreamEvent' these get fired when the predefined events happen on the connection and stream objects.
|
71 |
+
- Added Security.allowDomain() to allow loaded plugins to script the player
|
72 |
+
- Added addClip(clip, index) to the API, index is optional
|
73 |
+
- Possibility to view videos without metadata, using clip.metaData: false
|
74 |
+
- Now the player's preloader uses the rotating animation instead of a percent text to indicate the progress
|
75 |
+
of loading the player SWF. You can disable the aninamtion by setting buffering: false
|
76 |
+
- calling close() now does not send the onStop event
|
77 |
+
- Clip's custom properties are now present in the root of the clip argument in all clip events that are sent to JS.
|
78 |
+
|
79 |
+
Bug fixes:
|
80 |
+
- The preloader sometimes failed to initialize the player
|
81 |
+
- Allow seeking while in buffering state: http://flowplayer.org/forum/8/16505
|
82 |
+
- Replay of a RTMP stream was failing after the connection had expired
|
83 |
+
- Security error when clicking on the screen if there is an image in the playlist loaded from a foreign domain
|
84 |
+
- loadPlugin() was not working
|
85 |
+
- now fullscreen works with Flash versions older than 9.0.115, in versions that do not support hardware scaling
|
86 |
+
- replaying a RTMP stream with an image in front of the stream in the playlist was not working (video stayed hidden). Happened
|
87 |
+
because the server does not send metadata if replaying the same stream.
|
88 |
+
- the scrubber is disabled if the clip is not seekable in the first frame: http://flowplayer.org/forum/8/16526
|
89 |
+
By default if the clip has one of following extensions (the typical flash video extensions) it is seekable
|
90 |
+
in the first frame: 'f4b', 'f4p', 'f4v', 'flv'. Added new clip property seekableOnBegin that can be used to override the default.
|
91 |
+
|
92 |
+
3.0.6
|
93 |
+
-----
|
94 |
+
- added possibility to associate a linkUrl and linkWindow to the canvas
|
95 |
+
Fixes:
|
96 |
+
- fix for entering fullscreen for Flash versions that don't support the hardware scaled fullscreen-mode
|
97 |
+
- when showing images the duration tracking starts only after the image has been completely loaded: http://flowplayer.org/forum/2/15301
|
98 |
+
- fix for verifying license keys for domains that have more than 4 labels in them
|
99 |
+
- if plugin loading failis because of a IO error, the plugin will be discarded and the player initialization continues:
|
100 |
+
|
101 |
+
3.0.4
|
102 |
+
-----
|
103 |
+
- The "play" pseudo-plugin now supports fadeIn(), fadeOut(), showPlugin(), hidePlugin() and
|
104 |
+
additionally you can configure it like this:
|
105 |
+
// make only the play button invisible (buffering animation is still used)
|
106 |
+
play: { display: 'none' }
|
107 |
+
// disable the play button and the buffering animation
|
108 |
+
play: null
|
109 |
+
// disable the buffering animation
|
110 |
+
buffering: null
|
111 |
+
- Added possibility to seek when in the buffering state: http://flowplayer.org/forum/3/13896
|
112 |
+
- Added copyright notices and other GPL required entries to the user interface
|
113 |
+
|
114 |
+
Fixes:
|
115 |
+
- clip urls were not resolved correctly if the HTML page URL had a query string starting with a question mark (http://flowplayer.org/forum/8/14016#post-14016)
|
116 |
+
- Fixed context menu for with IE (commercial version)
|
117 |
+
- a cuepoint at time zero was fired several times
|
118 |
+
- screen is now arranged correctly even when only bottom or top is defined for it in the configuration
|
119 |
+
- Fixed context menu for with IE (commercial version)
|
120 |
+
- a cuepoint at time zero was fired several times
|
121 |
+
- screen is now arranged correctly even when only bottom or top is defined for it in the configuration
|
122 |
+
- Now possible to call play() in an onError handler: http://flowplayer.org/forum/8/12939
|
123 |
+
- Does not throw an error if the player cannot persist the volume on the client computer: http://flowplayer.org/forum/8/13286#post-13495
|
124 |
+
- Triggering fullscreen does not pause the player in IE
|
125 |
+
- The play button overlay no longer has a gap between it's pieces when a label is used: http://flowplayer.org/forum/8/14250
|
126 |
+
- clip.update() JS call now resets the duration
|
127 |
+
- a label configured for the play button overlay did not work in the commercial version
|
128 |
+
|
129 |
+
3.0.3
|
130 |
+
-----
|
131 |
+
- fixed cuepoint firing: Does not skip cuepoints any more
|
132 |
+
- Plugins can now be loaded from a different domain to the flowplayer.swf
|
133 |
+
- Specifying a clip to play by just using the 'clip' node in the configuration was not working, a playlist definition was required. This is now fixed.
|
134 |
+
- Fixed: A playlist with different providers caused the onMetadata event to fire events with metadata from the previous clip in the playlist. Occurred when moving in the playlist with next() and prev()
|
135 |
+
- the opacity setting now works with the logo
|
136 |
+
- fadeOut() call to the "screen" plugin was sending the listenerId and pluginName arguments in wrong order
|
137 |
+
- stop(), pause(), resume(), close() no longer return the flowplayer object to JS
|
138 |
+
- changing the size of the screen in a onFullscreen listener now always works, there was a bug that caused this to fail occasionally
|
139 |
+
- fixed using arbitrary SWFs as plugins
|
140 |
+
- the API method setPlaylist() no longer starts playing if autoPlay: true, neither it starts buffering if autoBuffering: true
|
141 |
+
- the API method play() now accepts an array of clip objects as an argument, the playlist is replaced with the specified clips and playback starts from the 1st clip
|
142 |
+
|
143 |
+
3.0.2
|
144 |
+
-----
|
145 |
+
- setting play: null now works again
|
146 |
+
- pressing the play again button overlay does not open a linkUrl associated with a clip
|
147 |
+
- now displays a live feed even when the RTMP server does not send any metadata and the onStart method is not therefore dispatched
|
148 |
+
- added onMetaData clip event
|
149 |
+
- fixed 'orig' scaling: the player went to 'fit' scaling after coming back from fullscreen. This is now fixed and the original dimensions are preserved in non-fullscreen mode.
|
150 |
+
- cuepoint times are now given in milliseconds, the firing precision is 100 ms. All cuepoint times are rounded to the nearest 100 ms value (for example 1120 rounds to 1100)
|
151 |
+
- backgroundGradient was drawn over the background image in the canvas and in the content and controlbar plugins. Now it's drawn below the image.
|
152 |
+
- added cuepointMultiplier property to clips. This can be used to multiply the time values read from cuepoint metadata embedded into video files.
|
153 |
+
- the player's framerate was increased to 24 FPS, makes all animations smoother
|
154 |
+
|
155 |
+
3.0.1
|
156 |
+
-----
|
157 |
+
- Fixed negative cuepoints from common clip. Now these are properly propagated to the clips in playlist.
|
158 |
+
- buffering animation is now the same size as the play button overlay
|
159 |
+
- commercial version now supports license keys that allows the use of subdomains
|
160 |
+
- error messages are now automatically hidden after a 4 second delay. They are also hidden when a new clips
|
161 |
+
starts playing (when onBeforeBegin is fired)
|
162 |
+
- added possibility to disable the buffering animation like so: buffering: false
|
163 |
+
- pressing the play button overlay does not open a linkUrl associated with a clip
|
164 |
+
- license key verification failed if a port number was used in the URL (like in this url: http://mydomain.com:8080/video.html)
|
165 |
+
- added audio support, clip has a new "image" property
|
166 |
+
- workaround for missing "NetStream.Play.Start" notfication that was happending with Red5. Because of this issue the video was not shown.
|
167 |
+
- commercial version has the possibility to change the zIndex of the logo
|
168 |
+
|
169 |
+
3.0.0
|
170 |
+
-----
|
171 |
+
- Removed security errors that happened when loading images from foreign domains (domains other than the domain of the core SWF).
|
172 |
+
Using a backgroundImage on canvas, in the content plugin, and for the controls is also possible to be loaded
|
173 |
+
from a foreign domain - BUT backgroundRepeat cannot be used for foreign images.
|
174 |
+
- Now allows the embedding HTML to script the player even if the player is loaded from another domain.
|
175 |
+
- Added a 'live' property to Clips, used for live streams.
|
176 |
+
- A player embedded to a foreign domain now loads images, css files and other resources from the domain where the palyer SWF was loaded from. This is to generate shorter embed-codes.
|
177 |
+
- Added linkUrl and linkWindow properties to the logo, in commercial version you can set these to point to a linked page. The linked page gets opened
|
178 |
+
when the logo is clicked. Possible values for linkWindow:
|
179 |
+
* "_self" specifies the current frame in the current window.
|
180 |
+
* "_blank" specifies a new window.
|
181 |
+
* "_parent" specifies the parent of the current frame.
|
182 |
+
* "_top" specifies the top-level frame in the current window.
|
183 |
+
- Added linkUrl and linkWindow properties to clips. The linked page is opened when the video are is clicked and the corresponding clip has a linkUrl specified.
|
184 |
+
- Made the play button overlay and the "Play again" button slightly bigger.
|
185 |
+
|
186 |
+
RC4
|
187 |
+
---
|
188 |
+
- Now shows a "Play again" button at the end of the video/playlist
|
189 |
+
- Commercial version shows a Flowplayer logo if invalidKey was supplied, but the otherwise the player works
|
190 |
+
- setting play: null in configuration will disable the play button overlay
|
191 |
+
- setting opacity for "play" also sets it for the buffering animation
|
192 |
+
- Fixed firing of cuepoints too early. Cuepoint firing is now based on stream time and does not rely on timers
|
193 |
+
- added onXMPData event listener
|
194 |
+
- Should not stop playback too early before the clip is really completed
|
195 |
+
- The START event is now delayed so that the metadata is available when the event is fired, METADATA event was removed,
|
196 |
+
new event BEGIN that is dispatched when the playback has been successfully started. Metadata is not normally
|
197 |
+
available when BEGIN is fired.
|
198 |
+
|
199 |
+
RC3
|
200 |
+
---
|
201 |
+
- stopBuffering() now dispatches the onStop event first if the player is playing/paused/buffering at the time of calling it
|
202 |
+
- fixed detection of images based on file extensions
|
203 |
+
- fixed some issues with having images in the playlist
|
204 |
+
- made it possible to autoBuffer next video while showing an image (image without a duration)
|
205 |
+
|
206 |
+
RC2
|
207 |
+
---
|
208 |
+
- fixed: setting the screen height in configuration did not have any effect
|
209 |
+
|
210 |
+
RC1
|
211 |
+
-----
|
212 |
+
- better error message if plugin loading fails, shows the URL used
|
213 |
+
- validates our redesigned multidomain license key correctly
|
214 |
+
- fix to prevent the play button going visible when the onBufferEmpty event occurs
|
215 |
+
- the commercial swf now correctly loads the controls using version information
|
216 |
+
- fixed: the play button overlay became invisible with long fadeOutSpeeds
|
217 |
+
|
218 |
+
beta6
|
219 |
+
-----
|
220 |
+
- removed the onFirstFramePause event
|
221 |
+
- playing a clip for the second time caused a doubled sound
|
222 |
+
- pausing on first frame did not work on some FLV files
|
223 |
+
|
224 |
+
beta5
|
225 |
+
-----
|
226 |
+
- logo only uses percentage scaling if it's a SWF file (there is ".swf" in it's url)
|
227 |
+
- context menu now correctly builds up from string entries in configuration
|
228 |
+
-always closes the previous connection before starting a new clip
|
229 |
+
|
230 |
+
beta4
|
231 |
+
-----
|
232 |
+
- now it's possible to load a plugin into the panel without specifying any position/dimensions
|
233 |
+
information, the plugin is placed to left: "50%", top: "50%" and using the plugin DisplayObject's width & height
|
234 |
+
- The Flowplayer API was not fully initialized when onLoad was invoked on Flash plugins
|
235 |
+
|
236 |
+
beta3
|
237 |
+
-----
|
238 |
+
- tweaking logo placement
|
239 |
+
- "play" did not show up after repeated pause/resume
|
240 |
+
- player now loads the latest controls SWF version, right now the latest SWF is called 'flowplayer.controls-3.0.0-beta2.swf'
|
241 |
+
|
242 |
+
beta2
|
243 |
+
-----
|
244 |
+
- fixed support for RTMP stream groups
|
245 |
+
- changed to loop through available fonts in order to find a suitable font also in IE
|
246 |
+
- Preloader was broken on IE: When the player SWf was in browser's cache it did not initialize properly
|
247 |
+
- Context menu now correctly handles menu items that are configured by their string labels only (not using json objects)
|
248 |
+
- fixed custom logo positioning (was moved to the left edge of screen in fullscreen)
|
249 |
+
- "play" now always follows the position and size of the screen
|
250 |
+
- video was stretched below the controls in fullscreen when autoHide: 'never'
|
251 |
+
- logo now takes 6.5% of the screen height, width is scaled so that the aspect ratio is preserved
|
252 |
+
|
253 |
+
beta1
|
254 |
+
-----
|
255 |
+
- First public beta release
|
flowplayer/commercial/flowplayer.commercial-3.1.5.swf
ADDED
Binary file
|
flowplayer/commercial/flowplayer.controls-3.1.5.swf
ADDED
Binary file
|
flowplayer/example.flv
DELETED
Binary file
|
flowplayer/flowplayer.audio-3.2.2.swf
ADDED
Binary file
|
flowplayer/flowplayer.controls.swf
CHANGED
Binary file
|
flowplayer/flowplayer.swf
CHANGED
Binary file
|
js/checkvideo.js
ADDED
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
function FVFPCheckVideo(id, nonce) {
|
2 |
+
source = jQuery( '#src_'+id).val();
|
3 |
+
jQuery.ajax({ type: "POST",
|
4 |
+
url: "../wp-admin/admin-ajax.php",
|
5 |
+
timeout: 3000,
|
6 |
+
data: { _ajax_nonce: nonce, id: id, source: source, action: 'fvp_ajax_action_checkvideo'},
|
7 |
+
success: function(data) {
|
8 |
+
//console.log(data);
|
9 |
+
if( data == '0') {
|
10 |
+
//element.innerHTML = 'Error?'; //todo
|
11 |
+
//jQuery( '#'+id ).removeClass("lnkrob-processing");
|
12 |
+
}
|
13 |
+
else {
|
14 |
+
// TODO replace DOM element
|
15 |
+
jQuery( '#video_'+id ).before( data ).remove();
|
16 |
+
}
|
17 |
+
}
|
18 |
+
} );
|
19 |
+
}
|
20 |
+
/*
|
21 |
+
var video;
|
22 |
+
function setValue() {
|
23 |
+
video = document.getElementById('video');
|
24 |
+
playVid();
|
25 |
+
}
|
26 |
+
|
27 |
+
function checkStatus() {
|
28 |
+
video.addEventListener('canplay',playVid,true);
|
29 |
+
}
|
30 |
+
|
31 |
+
function playVid() {
|
32 |
+
// Create variables for all relevant elements
|
33 |
+
// var video = document.getElementById('video');
|
34 |
+
var pause = document.getElementById('pause');
|
35 |
+
var play = document.getElementById('play');
|
36 |
+
var timer = document.getElementById('timer');
|
37 |
+
var duration = document.getElementById('duration');
|
38 |
+
var volume = document.getElementById('volume');
|
39 |
+
var vUp = document.getElementById('v-up');
|
40 |
+
var vDn = document.getElementById('v-dn');
|
41 |
+
var t; // This is for the timer
|
42 |
+
// Set some initial values in the page
|
43 |
+
volume.firstChild.nodeValue = Math.round(video.volume*10);
|
44 |
+
duration.firstChild.nodeValue = Math.round(video.duration);
|
45 |
+
// Function to begin the timer
|
46 |
+
function startCount() {
|
47 |
+
t = window.setInterval(function() {
|
48 |
+
if (video.ended != true) {
|
49 |
+
timer.firstChild.nodeValue = Math.round(video.currentTime + 1);
|
50 |
+
} else {
|
51 |
+
play.firstChild.nodeValue = 'Play';
|
52 |
+
window.clearInterval(t);
|
53 |
+
}
|
54 |
+
},1000);
|
55 |
+
}
|
56 |
+
// Function to pause the timer
|
57 |
+
function pauseCount() {
|
58 |
+
window.clearInterval(t);
|
59 |
+
}
|
60 |
+
// Play & pause when the control is clicked
|
61 |
+
play.addEventListener('click',playControl,false);
|
62 |
+
video.addEventListener('click',playControl,false);
|
63 |
+
function playControl() {
|
64 |
+
if (video.paused == false) {
|
65 |
+
video.pause();
|
66 |
+
this.firstChild.nodeValue = 'Play';
|
67 |
+
pauseCount();
|
68 |
+
} else {
|
69 |
+
video.play();
|
70 |
+
this.firstChild.nodeValue = 'Pause';
|
71 |
+
duration.firstChild.nodeValue = Math.round(video.duration);
|
72 |
+
startCount();
|
73 |
+
}
|
74 |
+
}
|
75 |
+
// Increase the volume
|
76 |
+
vUp.addEventListener('click',volUp,false);
|
77 |
+
function volUp() {
|
78 |
+
if (video.volume < 1) {
|
79 |
+
video.volume = Math.round((video.volume + 0.1)*10)/10;
|
80 |
+
volume.firstChild.nodeValue = Math.round(video.volume*10);
|
81 |
+
}
|
82 |
+
}
|
83 |
+
// Decrease the volume
|
84 |
+
vDn.addEventListener('click',volDown,false);
|
85 |
+
function volDown() {
|
86 |
+
if (video.volume > 0) {
|
87 |
+
video.volume = Math.round((video.volume - 0.1)*10)/10;
|
88 |
+
volume.firstChild.nodeValue = Math.round(video.volume*10);
|
89 |
+
}
|
90 |
+
}
|
91 |
+
}
|
92 |
+
|
93 |
+
window.onload = setValue;*/
|
js/flowPlayer.js
CHANGED
@@ -280,7 +280,7 @@
|
|
280 |
* the dimensions in metadata.
|
281 |
*
|
282 |
*/
|
283 |
-
initialScale: '
|
284 |
|
285 |
/*
|
286 |
* Specifies if the menu containing the size options should be shown or not.
|
280 |
* the dimensions in metadata.
|
281 |
*
|
282 |
*/
|
283 |
+
initialScale: 'orig',
|
284 |
|
285 |
/*
|
286 |
* Specifies if the menu containing the size options should be shown or not.
|
models/flowplayer-backend.php
CHANGED
@@ -2,10 +2,8 @@
|
|
2 |
/**
|
3 |
* Extension of original flowplayer class intended for administrator backend.
|
4 |
*/
|
5 |
-
|
6 |
class flowplayer_backend extends flowplayer
|
7 |
{
|
8 |
-
|
9 |
/**
|
10 |
* Displays elements that need to be added into head in administrator backend.
|
11 |
*/
|
@@ -13,16 +11,11 @@ class flowplayer_backend extends flowplayer
|
|
13 |
/**
|
14 |
* Standard JS and CSS same as for frontend
|
15 |
*/
|
16 |
-
|
17 |
include dirname( __FILE__ ) . '/../view/frontend-head.php';
|
18 |
/**
|
19 |
* Admin specific CSS and JS
|
20 |
*/
|
21 |
include dirname( __FILE__ ) . '/../view/backend-head.php';
|
22 |
-
|
23 |
}
|
24 |
-
|
25 |
-
|
26 |
}
|
27 |
-
|
28 |
-
?>
|
2 |
/**
|
3 |
* Extension of original flowplayer class intended for administrator backend.
|
4 |
*/
|
|
|
5 |
class flowplayer_backend extends flowplayer
|
6 |
{
|
|
|
7 |
/**
|
8 |
* Displays elements that need to be added into head in administrator backend.
|
9 |
*/
|
11 |
/**
|
12 |
* Standard JS and CSS same as for frontend
|
13 |
*/
|
|
|
14 |
include dirname( __FILE__ ) . '/../view/frontend-head.php';
|
15 |
/**
|
16 |
* Admin specific CSS and JS
|
17 |
*/
|
18 |
include dirname( __FILE__ ) . '/../view/backend-head.php';
|
|
|
19 |
}
|
|
|
|
|
20 |
}
|
21 |
+
?>
|
|
models/flowplayer-frontend.php
CHANGED
@@ -1,89 +1,122 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* Extension of original flowplayer class intended for frontend.
|
5 |
*/
|
6 |
-
|
7 |
class flowplayer_frontend extends flowplayer
|
8 |
{
|
9 |
-
|
10 |
/**
|
11 |
* Builds the HTML and JS code of single flowplayer instance on a page/post.
|
12 |
* @param string $media URL or filename (in case it is in the /videos/ directory) of video file to be played.
|
13 |
* @param array $args Array of arguments (name => value).
|
14 |
* @return Returns array with 2 elements - 'html' => html code displayed anywhere on page/post, 'script' => javascript code displayed before </body> tag
|
15 |
*/
|
16 |
-
function build_min_player($media,$args = array()) {
|
17 |
-
|
18 |
// returned array with new player's html and javascript content
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
}
|
24 |
-
|
25 |
-
//
|
26 |
-
$
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
$autoplay = 'false';
|
33 |
-
$controlbar = 'always';
|
34 |
-
$redirect = '';
|
35 |
-
$args['redirect'];
|
36 |
-
if (isset($this->conf['autoplay'])&&!empty($this->conf['autoplay'])) $autoplay = trim($this->conf['autoplay']);
|
37 |
-
if (isset($args['autoplay'])&&!empty($args['autoplay'])) $autoplay = trim($args['autoplay']);
|
38 |
-
if (isset($args['width'])&&!empty($args['width'])) $width = trim($args['width']);
|
39 |
-
if (isset($args['height'])&&!empty($args['height'])) $height = trim($args['height']);
|
40 |
-
if (isset($args['controlbar'])&&($args['controlbar']=='show')) $controlbar = 'never';
|
41 |
-
if (isset($args['redirect'])&&!empty($args['redirect'])) $redirect = trim($args['redirect']);
|
42 |
-
|
43 |
// if allowed by configuration file, set the popup box js code and content
|
44 |
-
if (((isset($this->conf['popupbox']))&&($this->conf['popupbox']
|
45 |
-
if (isset($args['popup'])) {
|
46 |
$popup = trim($args['popup']);
|
47 |
//$popup = html_entity_decode(str_replace("_"," ",substr($popup,1,strlen($popup)-2)));
|
48 |
$popup = html_entity_decode( str_replace(''',"'",$popup ) );
|
49 |
} else {
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
</a>
|
65 |
-
</div>
|
66 |
-
</div>';
|
67 |
-
$popup_contents = "\n".'<div id="popup_contents_'.$hash.'" class="popup_contents" style="border:none;">'.$popup_controls.'
|
68 |
-
<div id="wpfp_'.$hash.'_custom_popup" class="wpfp_custom_popup" style="border:none;margin:5%;text-align:center;">'.$popup.'
|
69 |
-
<br /><br />'.$link_button.'</div>
|
70 |
-
</div>';
|
71 |
-
// replace href attribute by javascript function
|
72 |
$popup_contents = str_replace("href=\"","onClick=\"javascript:window.location=this.href\" href=\"",$popup_contents);
|
73 |
$popup_code = "
|
74 |
window.flowplayer('wpfp_$hash').onFinish(function() {
|
75 |
-
|
76 |
window.open('$redirect','fv_redirect_to');
|
77 |
-
}
|
78 |
-
|
79 |
-
var fp = document.getElementById('wpfp_$hash');
|
80 |
var popup = document.createElement('div');
|
81 |
var popup_contents = document.getElementById('popup_contents_$hash');
|
82 |
popup.className = 'flowplayer_popup';
|
83 |
popup.id = 'wpfp_".$hash."_popup';
|
|
|
|
|
84 |
popup.innerHTML = popup_contents.innerHTML;
|
85 |
fp.appendChild(popup);
|
86 |
-
|
87 |
});
|
88 |
window.flowplayer('wpfp_$hash').onLoad(function() {
|
89 |
var fp = document.getElementById('wpfp_".$hash."');
|
@@ -107,24 +140,11 @@ class flowplayer_frontend extends flowplayer
|
|
107 |
});
|
108 |
";
|
109 |
}
|
110 |
-
|
111 |
-
if (isset($args['splash']) && !empty($args['splash'])) {
|
112 |
-
if( strpos($args['splash'],'http://') === false && strpos($args['splash'],'https://') === false ) {
|
113 |
-
$splash_img = VIDEO_PATH.trim($args['splash']);
|
114 |
-
} else {
|
115 |
-
$splash_img = trim($args['splash']);
|
116 |
-
}
|
117 |
-
$splash = '<img src="'.$splash_img.'" alt="" class="splash" /><img width="83" height="83" border="0" src="'.RELATIVE_PATH.'/images/play.png" alt="" class="splash_play_button" style="top: '.round($height/2-45).'px; border:0;" />';
|
118 |
-
// overriding the "autoplay" configuration - video should start immediately after click on the splash image
|
119 |
-
$this->conf['autoplay'] = 'true';
|
120 |
-
$autoplay = true;
|
121 |
-
}
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
// set the output JavaScript (which will be added to document head)
|
126 |
-
$
|
|
|
127 |
if (document.getElementById(\'wpfp_'.$hash.'\') != null) {
|
|
|
128 |
flowplayer("wpfp_'.$hash.'", {src: "'.PLAYER.'", wmode: \'opaque\'}, {
|
129 |
'.(isset($this->conf['key'])&&strlen($this->conf['key'])>0?'key:\''.trim($this->conf['key']).'\',':'').'
|
130 |
plugins: {
|
@@ -147,35 +167,42 @@ class flowplayer_frontend extends flowplayer
|
|
147 |
opacity:1.0,
|
148 |
fullscreen: '.(isset($this->conf['allowfullscreen'])?trim($this->conf['allowfullscreen']):'true').'
|
149 |
}':'controls:null'
|
150 |
-
).'
|
|
|
|
|
|
|
151 |
},
|
152 |
clip: {
|
153 |
url: \''.trim($media).'\',
|
154 |
autoPlay: '.trim($autoplay).',
|
|
|
155 |
autoBuffering: '.(isset($this->conf['autobuffer'])?trim($this->conf['autobuffer']):'false').'
|
156 |
},
|
157 |
canvas: {
|
158 |
backgroundColor:\''.trim($this->conf['canvas']).'\'
|
159 |
}
|
160 |
});
|
|
|
|
|
161 |
};
|
162 |
-
'
|
163 |
-
|
164 |
// set the output HTML (which will be printed into document body)
|
165 |
-
|
166 |
-
|
|
|
|
|
|
|
|
|
|
|
167 |
// return new player's html and script
|
168 |
return $ret;
|
169 |
}
|
170 |
-
|
171 |
/**
|
172 |
* Displays the elements that need to be added to frontend.
|
173 |
*/
|
174 |
function flowplayer_head() {
|
175 |
include dirname( __FILE__ ) . '/../view/frontend-head.php';
|
176 |
}
|
177 |
-
|
178 |
-
|
179 |
}
|
180 |
-
|
181 |
-
?>
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* Extension of original flowplayer class intended for frontend.
|
4 |
*/
|
|
|
5 |
class flowplayer_frontend extends flowplayer
|
6 |
{
|
|
|
7 |
/**
|
8 |
* Builds the HTML and JS code of single flowplayer instance on a page/post.
|
9 |
* @param string $media URL or filename (in case it is in the /videos/ directory) of video file to be played.
|
10 |
* @param array $args Array of arguments (name => value).
|
11 |
* @return Returns array with 2 elements - 'html' => html code displayed anywhere on page/post, 'script' => javascript code displayed before </body> tag
|
12 |
*/
|
13 |
+
function build_min_player($media,$sources,$args = array()) {
|
|
|
14 |
// returned array with new player's html and javascript content
|
15 |
+
$ret = array('html' => '', 'script' => '');
|
16 |
+
$extension = substr($media, -3);
|
17 |
+
if( strpos($media,'http://') === false && strpos($media,'https://') === false ) {
|
18 |
+
// strip the first / from $media
|
19 |
+
if($media[0]=='/') $media = substr($media, 1);
|
20 |
+
if((dirname($_SERVER['PHP_SELF'])!='/')&&(file_exists($_SERVER['DOCUMENT_ROOT'].dirname($_SERVER['PHP_SELF']).VIDEO_DIR.$media))){ //if the site does not live in the document root
|
21 |
+
$media = 'http://'.$_SERVER['SERVER_NAME'].dirname($_SERVER['PHP_SELF']).VIDEO_DIR.$media;
|
22 |
+
}
|
23 |
+
elseif(file_exists($_SERVER['DOCUMENT_ROOT'].VIDEO_DIR.$media)){ // if the videos folder is in the root
|
24 |
+
$media = 'http://'.$_SERVER['SERVER_NAME'].VIDEO_DIR.$media;//VIDEO_PATH.$media;
|
25 |
+
}
|
26 |
+
else{ // if the videos are not in the videos directory but they are adressed relatively
|
27 |
+
$media_path = str_replace('//','/',$_SERVER['SERVER_NAME'].'/'.$media);
|
28 |
+
$media = 'http://'.$media_path;
|
29 |
+
}
|
30 |
+
}
|
31 |
+
// unique coe for this player
|
32 |
+
$hash = md5($media.$this->_salt());
|
33 |
+
// setting argument values
|
34 |
+
$width = ( isset($this->conf['width']) && (!empty($this->conf['width'])) ) ? $this->conf['width'] : 320;
|
35 |
+
$height = ( isset($this->conf['height']) && (!empty($this->conf['height'])) ) ? $this->conf['height'] : 240;
|
36 |
+
$popup = '';
|
37 |
+
$autoplay = 'false';
|
38 |
+
$controlbar = 'always';
|
39 |
+
//check user agents
|
40 |
+
$aUserAgents = array('iphone', 'ipod', 'iPad', 'aspen', 'incognito', 'webmate', 'android', 'Android', 'dream', 'cupcake', 'froyo', 'blackberry9500', 'blackberry9520', 'blackberry9530', 'blackberry9550', 'blackberry9800', 'Palm', 'webos', 's8000', 'bada', 'Opera Mini', 'Opera Mobi', 'htc_touch_pro');
|
41 |
+
$mobileUserAgent = false;
|
42 |
+
foreach($aUserAgents as $userAgent){
|
43 |
+
if(stripos($_SERVER['HTTP_USER_AGENT'],$userAgent))
|
44 |
+
$mobileUserAgent = true;
|
45 |
+
}
|
46 |
+
$redirect = '';
|
47 |
+
if (isset($this->conf['autoplay'])&&!empty($this->conf['autoplay'])) $autoplay = trim($this->conf['autoplay']);
|
48 |
+
if (isset($args['autoplay'])&&!empty($args['autoplay'])) $autoplay = trim($args['autoplay']);
|
49 |
+
if (isset($args['width'])&&!empty($args['width'])) $width = trim($args['width']);
|
50 |
+
if (isset($args['height'])&&!empty($args['height'])) $height = trim($args['height']);
|
51 |
+
if (isset($args['controlbar'])&&($args['controlbar']=='show')) $controlbar = 'never';
|
52 |
+
if (isset($args['redirect'])&&!empty($args['redirect'])) $redirect = trim($args['redirect']);
|
53 |
+
if (isset($args['splashend'])&&($args['splashend']=='show')) $splashend = 'true';
|
54 |
+
else $splashend = '';
|
55 |
+
if (isset($this->conf['scaling'])&&($this->conf['scaling']=="true")) $scaling = "fit";
|
56 |
+
else $scaling = "scale";
|
57 |
+
if (isset($args['splash']) && !empty($args['splash'])) {
|
58 |
+
$splash_img = $args['splash'];
|
59 |
+
if( strpos($splash_img,'http://') === false && strpos($splash_img,'https://') === false ) {
|
60 |
+
// $splash_img = VIDEO_PATH.trim($args['splash']);
|
61 |
+
if($splash_img[0]=='/') $splash_img = substr($splash_img, 1);
|
62 |
+
if((dirname($_SERVER['PHP_SELF'])!='/')&&(file_exists($_SERVER['DOCUMENT_ROOT'].dirname($_SERVER['PHP_SELF']).VIDEO_DIR.$splash_img))){ //if the site does not live in the document root
|
63 |
+
$splash_img = 'http://'.$_SERVER['SERVER_NAME'].dirname($_SERVER['PHP_SELF']).VIDEO_DIR.$splash_img;
|
64 |
+
}
|
65 |
+
elseif(file_exists($_SERVER['DOCUMENT_ROOT'].VIDEO_DIR.$splash_img)){ // if the videos folder is in the root
|
66 |
+
$splash_img = 'http://'.$_SERVER['SERVER_NAME'].VIDEO_DIR.$splash_img;//VIDEO_PATH.$media;
|
67 |
+
}
|
68 |
+
else{ // if the videos are not in the videos directory but they are adressed relatively
|
69 |
+
$splash_img_path = str_replace('//','/',$_SERVER['SERVER_NAME'].'/'.$splash_img);
|
70 |
+
$splash_img = 'http://'.$splash_img_path;
|
71 |
+
}
|
72 |
+
} else {
|
73 |
+
$splash_img = trim($args['splash']);
|
74 |
}
|
75 |
+
$splash = '<img src="'.$splash_img.'" alt="" class="splash" /><img width="83" height="83" border="0" src="'.RELATIVE_PATH.'/images/play.png" alt="" class="splash_play_button" style="top: '.round($height/2-45).'px; border:0;" />';
|
76 |
+
// overriding the "autoplay" configuration - video should start immediately after click on the splash image
|
77 |
+
$this->conf['autoplay'] = 'true';
|
78 |
+
$autoplay = 'true';
|
79 |
+
}
|
80 |
+
else
|
81 |
+
if( $mobileUserAgent == true )
|
82 |
+
$splash = '<img width="83" height="83" border="0" src="'.RELATIVE_PATH.'/images/play.png" alt="" class="splash_play_button" style="top: '.round($height/2-45).'px; border:0;"/>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
// if allowed by configuration file, set the popup box js code and content
|
84 |
+
if ((( isset($this->conf['popupbox'] )) && ( $this->conf['popupbox']=="true" )) || (isset($args['popup']) && !empty($args['popup'])) || (!empty($redirect))|| (!empty($splashend))) {
|
85 |
+
if ( isset($args['popup'] ) && !empty($args['popup']) ) {
|
86 |
$popup = trim($args['popup']);
|
87 |
//$popup = html_entity_decode(str_replace("_"," ",substr($popup,1,strlen($popup)-2)));
|
88 |
$popup = html_entity_decode( str_replace(''',"'",$popup ) );
|
89 |
} else {
|
90 |
+
if (!$splashend)
|
91 |
+
$popup = 'Would you like to replay the video or share the link to it with your friends?';
|
92 |
+
else
|
93 |
+
$popup = '';
|
94 |
+
}
|
95 |
+
$link_button = '';
|
96 |
+
if ($this->conf['linkhighlight']=="true"){
|
97 |
+
preg_match('/(\<a href=.*?\>)(.*?)\<\/a\>/',$popup,$matches);
|
98 |
+
if(!empty($matches[1])) $link_button = $matches[1] . '<span class="link_button">' . $matches[2] . '</span></a>';
|
99 |
+
}
|
100 |
+
$popup_controls = '<div style="position:absolute;top:70%; width:100%;"><div class="popup_controls" style="border:none;text-align:center;"> <a title="Replay video" href="javascript:fp_replay(\''.$hash.'\');"><img src="'.RELATIVE_PATH.'/images/replay.png" alt="Replay video" /></a> <a title="Share video" href="javascript:fp_share(\''.$hash.'\');"><img src="'.RELATIVE_PATH.'/images/share.png" alt="Share video" /></a></div></div>';
|
101 |
+
$popup_contents = "\n".'<div id="popup_contents_'.$hash.'" class="popup_contents" style="border:none;">'.$popup_controls.'<div id="wpfp_'.$hash.'_custom_popup" class="wpfp_custom_popup" style="border:none;margin:5%;text-align:center;"><p>'.$popup.'</p><br /><br />'.$link_button.'</div></div>';
|
102 |
+
//if ( $splashend =='true' ) $popup_contents = "\n".'<div id="popup_contents_'.$hash.'" class="popup_contents" style="border:none;">'.$popup_controls.'<div id="wpfp_'.$hash.'_custom_popup" class="wpfp_custom_popup" style="border:none;margin:5%;text-align:center;"><p></p><br /><br /></div></div>';
|
103 |
+
// replace href attribute by javascript function
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
$popup_contents = str_replace("href=\"","onClick=\"javascript:window.location=this.href\" href=\"",$popup_contents);
|
105 |
$popup_code = "
|
106 |
window.flowplayer('wpfp_$hash').onFinish(function() {
|
107 |
+
if ('$redirect'){
|
108 |
window.open('$redirect','fv_redirect_to');
|
109 |
+
}else{
|
110 |
+
var fp = document.getElementById('wpfp_$hash');
|
|
|
111 |
var popup = document.createElement('div');
|
112 |
var popup_contents = document.getElementById('popup_contents_$hash');
|
113 |
popup.className = 'flowplayer_popup';
|
114 |
popup.id = 'wpfp_".$hash."_popup';
|
115 |
+
if('$splashend'=='true')
|
116 |
+
popup.style.background = '#060606 url(\"$splash_img\") no-repeat';
|
117 |
popup.innerHTML = popup_contents.innerHTML;
|
118 |
fp.appendChild(popup);
|
119 |
+
}
|
120 |
});
|
121 |
window.flowplayer('wpfp_$hash').onLoad(function() {
|
122 |
var fp = document.getElementById('wpfp_".$hash."');
|
140 |
});
|
141 |
";
|
142 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
143 |
// set the output JavaScript (which will be added to document head)
|
144 |
+
if( $mobileUserAgent == false )
|
145 |
+
$ret['script'] = '
|
146 |
if (document.getElementById(\'wpfp_'.$hash.'\') != null) {
|
147 |
+
'.(($mobileUserAgent==true)?'jQuery(function() {':'').'
|
148 |
flowplayer("wpfp_'.$hash.'", {src: "'.PLAYER.'", wmode: \'opaque\'}, {
|
149 |
'.(isset($this->conf['key'])&&strlen($this->conf['key'])>0?'key:\''.trim($this->conf['key']).'\',':'').'
|
150 |
plugins: {
|
167 |
opacity:1.0,
|
168 |
fullscreen: '.(isset($this->conf['allowfullscreen'])?trim($this->conf['allowfullscreen']):'true').'
|
169 |
}':'controls:null'
|
170 |
+
).',
|
171 |
+
audio: {
|
172 |
+
url: \''.AUDIOPLAYER.'\'
|
173 |
+
}
|
174 |
},
|
175 |
clip: {
|
176 |
url: \''.trim($media).'\',
|
177 |
autoPlay: '.trim($autoplay).',
|
178 |
+
scaling: \''.$scaling.'\',
|
179 |
autoBuffering: '.(isset($this->conf['autobuffer'])?trim($this->conf['autobuffer']):'false').'
|
180 |
},
|
181 |
canvas: {
|
182 |
backgroundColor:\''.trim($this->conf['canvas']).'\'
|
183 |
}
|
184 |
});
|
185 |
+
'.(($mobileUserAgent==true)?'flowplayer("wpfp_'.$hash.'").html5({html5_force:true, h264_baseurl:"http://diveintohtml5.org/i"});':'').'
|
186 |
+
'.(($mobileUserAgent==true)?'});':'').'
|
187 |
};
|
188 |
+
';//.$popup_code;
|
189 |
+
if($mobileUserAgent==false && $popup_code) $ret['script'] .= $popup_code;
|
190 |
// set the output HTML (which will be printed into document body)
|
191 |
+
// $ret['html'] .= '<a id="wpfp_'.$hash.'" style="width:'.$width.'px; height:'.$height.'px;" class="flowplayer_container">'.$splash.'</a>'.$popup_contents;
|
192 |
+
$ret['html'] .= '<a id="wpfp_'.$hash.'" style="width:'.$width.'px; height:'.$height.'px;" class="flowplayer_container player plain">'.$splash.'</a>';//.$popup_contents;
|
193 |
+
if($mobileUserAgent==false && $popup_contents) $ret['html'] .= $popup_contents;
|
194 |
+
if($mobileUserAgent==true)
|
195 |
+
$ret['html'] = '<video poster="'.$splash_img.'" width="'.$width.'" height="'.$height.'" controls >
|
196 |
+
<source src="'.trim($media).'" type="video/mp4" />
|
197 |
+
</video>';
|
198 |
// return new player's html and script
|
199 |
return $ret;
|
200 |
}
|
|
|
201 |
/**
|
202 |
* Displays the elements that need to be added to frontend.
|
203 |
*/
|
204 |
function flowplayer_head() {
|
205 |
include dirname( __FILE__ ) . '/../view/frontend-head.php';
|
206 |
}
|
|
|
|
|
207 |
}
|
208 |
+
?>
|
|
models/flowplayer.php
CHANGED
@@ -1,8 +1,6 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
class flowplayer {
|
4 |
private $count = 0;
|
5 |
-
|
6 |
/**
|
7 |
* Relative URL path
|
8 |
*/
|
@@ -15,12 +13,10 @@ class flowplayer {
|
|
15 |
* Where the config file should be
|
16 |
*/
|
17 |
private $conf_path = '';
|
18 |
-
|
19 |
/**
|
20 |
* Configuration variables array
|
21 |
*/
|
22 |
public $conf = array();
|
23 |
-
|
24 |
/**
|
25 |
* Class constructor
|
26 |
*/
|
@@ -38,11 +34,12 @@ class flowplayer {
|
|
38 |
private function _get_conf() {
|
39 |
/// Addition 2010/07/12 mv
|
40 |
$conf = get_option( 'fvwpflowplayer' );
|
41 |
-
|
42 |
if( !isset( $conf['autoplay'] ) ) $conf['autoplay'] = 'false';
|
43 |
if( !isset( $conf['key'] ) ) $conf['key'] = 'false';
|
44 |
if( !isset( $conf['autobuffer'] ) ) $conf['autobuffer'] = 'false';
|
|
|
45 |
if( !isset( $conf['popupbox'] ) ) $conf['popupbox'] = 'false';
|
|
|
46 |
if( !isset( $conf['allowfullscreen'] ) ) $conf['allowfullscreen'] = 'true';
|
47 |
if( !isset( $conf['allowuploads'] ) ) $conf['allowuploads'] = 'true';
|
48 |
if( !isset( $conf['postthumbnail'] ) ) $conf['postthumbnail'] = 'false';
|
@@ -57,7 +54,10 @@ class flowplayer {
|
|
57 |
if( !isset( $conf['progressColor'] ) ) $conf['progressColor'] = '#707070';
|
58 |
if( !isset( $conf['bufferColor'] ) ) $conf['bufferColor'] = '#4d4d4d';
|
59 |
if( !isset( $conf['commas'] ) ) $conf['commas'] = 'true';
|
60 |
-
|
|
|
|
|
|
|
61 |
update_option( 'fvwpflowplayer', $conf );
|
62 |
$this->conf = $conf;
|
63 |
return true;
|
@@ -67,15 +67,16 @@ class flowplayer {
|
|
67 |
* Writes configuration into file.
|
68 |
*/
|
69 |
public function _set_conf() {
|
70 |
-
|
71 |
foreach( $_POST AS $key => $value ) {
|
|
|
72 |
if( (strpos( $key, 'Color' ) !== FALSE )||(strpos( $key, 'canvas' ) !== FALSE)) {
|
73 |
-
$_POST[$key] = '#'.strtolower($
|
74 |
}
|
75 |
}
|
|
|
76 |
update_option( 'fvwpflowplayer', $_POST );
|
77 |
-
return;
|
78 |
-
|
79 |
}
|
80 |
/**
|
81 |
* Salt function - returns pseudorandom string hash.
|
@@ -85,27 +86,39 @@ class flowplayer {
|
|
85 |
$salt = substr(md5(uniqid(rand(), true)), 0, 10);
|
86 |
return $salt;
|
87 |
}
|
88 |
-
|
89 |
-
|
90 |
}
|
91 |
-
|
92 |
/**
|
93 |
* Defines some needed constants and loads the right flowplayer_head() function.
|
94 |
*/
|
95 |
function flowplayer_head() {
|
96 |
// define needed constants
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
if (!defined('RELATIVE_PATH')) {
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
// call the right function for displaying CSS and JS links
|
110 |
if (class_exists('flowplayer_frontend')) {
|
111 |
flowplayer_frontend::flowplayer_head();
|
@@ -113,5 +126,36 @@ function flowplayer_head() {
|
|
113 |
flowplayer_backend::flowplayer_head();
|
114 |
}
|
115 |
}
|
116 |
-
|
117 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?php
|
|
|
2 |
class flowplayer {
|
3 |
private $count = 0;
|
|
|
4 |
/**
|
5 |
* Relative URL path
|
6 |
*/
|
13 |
* Where the config file should be
|
14 |
*/
|
15 |
private $conf_path = '';
|
|
|
16 |
/**
|
17 |
* Configuration variables array
|
18 |
*/
|
19 |
public $conf = array();
|
|
|
20 |
/**
|
21 |
* Class constructor
|
22 |
*/
|
34 |
private function _get_conf() {
|
35 |
/// Addition 2010/07/12 mv
|
36 |
$conf = get_option( 'fvwpflowplayer' );
|
|
|
37 |
if( !isset( $conf['autoplay'] ) ) $conf['autoplay'] = 'false';
|
38 |
if( !isset( $conf['key'] ) ) $conf['key'] = 'false';
|
39 |
if( !isset( $conf['autobuffer'] ) ) $conf['autobuffer'] = 'false';
|
40 |
+
if( !isset( $conf['scaling'] ) ) $conf['scaling'] = 'false';
|
41 |
if( !isset( $conf['popupbox'] ) ) $conf['popupbox'] = 'false';
|
42 |
+
if( !isset( $conf['linkhighlight'] ) ) $conf['linkhighlight'] = 'false';
|
43 |
if( !isset( $conf['allowfullscreen'] ) ) $conf['allowfullscreen'] = 'true';
|
44 |
if( !isset( $conf['allowuploads'] ) ) $conf['allowuploads'] = 'true';
|
45 |
if( !isset( $conf['postthumbnail'] ) ) $conf['postthumbnail'] = 'false';
|
54 |
if( !isset( $conf['progressColor'] ) ) $conf['progressColor'] = '#707070';
|
55 |
if( !isset( $conf['bufferColor'] ) ) $conf['bufferColor'] = '#4d4d4d';
|
56 |
if( !isset( $conf['commas'] ) ) $conf['commas'] = 'true';
|
57 |
+
if( !isset( $conf['optimizejs'] ) ) $conf['optimizejs'] = 'false';
|
58 |
+
if( !isset( $conf['width'] ) ) $conf['width'] = '320';
|
59 |
+
if( !isset( $conf['height'] ) ) $conf['height'] = '240';
|
60 |
+
|
61 |
update_option( 'fvwpflowplayer', $conf );
|
62 |
$this->conf = $conf;
|
63 |
return true;
|
67 |
* Writes configuration into file.
|
68 |
*/
|
69 |
public function _set_conf() {
|
70 |
+
$save_key = $_POST['key'];
|
71 |
foreach( $_POST AS $key => $value ) {
|
72 |
+
$_POST[$key] = preg_replace('/[^A-Za-z0-9]/', '', $value);
|
73 |
if( (strpos( $key, 'Color' ) !== FALSE )||(strpos( $key, 'canvas' ) !== FALSE)) {
|
74 |
+
$_POST[$key] = '#'.strtolower($_POST[$key]);
|
75 |
}
|
76 |
}
|
77 |
+
$_POST['key'] = $save_key;
|
78 |
update_option( 'fvwpflowplayer', $_POST );
|
79 |
+
return;
|
|
|
80 |
}
|
81 |
/**
|
82 |
* Salt function - returns pseudorandom string hash.
|
86 |
$salt = substr(md5(uniqid(rand(), true)), 0, 10);
|
87 |
return $salt;
|
88 |
}
|
|
|
|
|
89 |
}
|
|
|
90 |
/**
|
91 |
* Defines some needed constants and loads the right flowplayer_head() function.
|
92 |
*/
|
93 |
function flowplayer_head() {
|
94 |
// define needed constants
|
95 |
+
preg_match('/.*wp-content\/plugins\/(.*?)\/models.*/',dirname(__FILE__),$matches);
|
96 |
+
if (isset($matches[1]))
|
97 |
+
$strFPdirname = $matches[1];
|
98 |
+
else
|
99 |
+
$strFPdirname = 'fv-wordpress-flowplayer';
|
100 |
if (!defined('RELATIVE_PATH')) {
|
101 |
+
//define('RELATIVE_PATH', get_option('siteurl').'/wp-content/plugins/'.$strFPdirname); // following bugfix by scott@scottelkin.com
|
102 |
+
if( function_exists('plugins_url') ) {
|
103 |
+
define('RELATIVE_PATH', plugins_url().'/'.$strFPdirname);
|
104 |
+
} else {
|
105 |
+
$siteurl = get_option('siteurl');
|
106 |
+
if((!empty($_SERVER['HTTPS'])) && ('off'!==$_SERVER['HTTPS'])) // this line changes by carlo@artilibere.com
|
107 |
+
$siteurl = preg_replace('/^http:(.*)$/', "https:$1", $siteurl);
|
108 |
+
define('RELATIVE_PATH', $siteurl.'/wp-content/plugins/'.$strFPdirname);
|
109 |
+
}
|
110 |
+
$conf = get_option( 'fvwpflowplayer' );
|
111 |
+
if( !isset( $conf['key'] )||(!$conf['key'])||($conf['key']=='false') )
|
112 |
+
define('PLAYER', RELATIVE_PATH.'/flowplayer/flowplayer.swf');
|
113 |
+
else
|
114 |
+
define('PLAYER', RELATIVE_PATH.'/flowplayer/commercial/flowplayer.commercial-3.1.5.swf');
|
115 |
+
define('AUDIOPLAYER', RELATIVE_PATH.'/flowplayer/flowplayer.audio-3.2.2.swf');
|
116 |
+
$vid = 'http://'.$_SERVER['SERVER_NAME'];
|
117 |
+
if (dirname($_SERVER['PHP_SELF']) != '/')
|
118 |
+
$vid .= dirname($_SERVER['PHP_SELF']);
|
119 |
+
define('VIDEO_DIR', '/videos/');
|
120 |
+
define('VIDEO_PATH', $vid.VIDEO_DIR);
|
121 |
+
}
|
122 |
// call the right function for displaying CSS and JS links
|
123 |
if (class_exists('flowplayer_frontend')) {
|
124 |
flowplayer_frontend::flowplayer_head();
|
126 |
flowplayer_backend::flowplayer_head();
|
127 |
}
|
128 |
}
|
129 |
+
function fvp_ajax_action_checkvideo(){
|
130 |
+
$pattern = '/' . $_SERVER['SERVER_NAME'] . '(.*)/';
|
131 |
+
preg_match($pattern, $_POST['source'], $matches);
|
132 |
+
if ($matches[1]) $strUpVideo = realpath($_SERVER['DOCUMENT_ROOT'] . $matches[1]);
|
133 |
+
else $strUpVideo = $_POST['source'];
|
134 |
+
require_once(dirname(__FILE__).'/../view/getid3/getid3.php');
|
135 |
+
// Initialize getID3 engine
|
136 |
+
$getID3 = new getID3;
|
137 |
+
$ThisFileInfo = $getID3->analyze($strUpVideo);
|
138 |
+
if (isset($ThisFileInfo['error'])) $file_error = "Could not read video details, please fill the width and height manually.";
|
139 |
+
$file_time = $ThisFileInfo['playtime_string']; // playtime in minutes:seconds, formatted string
|
140 |
+
$file_width = $ThisFileInfo['video']['resolution_x'];
|
141 |
+
$file_height = $ThisFileInfo['video']['resolution_y'];
|
142 |
+
$file_size = $ThisFileInfo['filesize'];
|
143 |
+
$file_size = round($file_size/(1024*1024),2);
|
144 |
+
$output = '<tr id="video_' . $_POST['id'] . '">
|
145 |
+
<th></th>
|
146 |
+
<td><span>Width <small>(px)</small></span><input type="text" id="width_' . $_POST['id'] . '" name="width_' . $_POST['id'] . '" style="width: 25%" value="' . $file_width . '"/><br />
|
147 |
+
<span>Height <small>(px)</small></span><input type="text" id="height_' . $_POST['id'] . '" name="height_' . $_POST['id'] . '" style="width: 25%" value="' . $file_height . '"/></td>
|
148 |
+
<td>';
|
149 |
+
if (isset($file_error))
|
150 |
+
$output .= 'Video header could not be read, please fill the width and height manually.';
|
151 |
+
else
|
152 |
+
$output .= 'Video Duration: ' . $file_time . ' min<br />
|
153 |
+
File size: ' . $file_size . ' MB';
|
154 |
+
$output .= '</td>
|
155 |
+
<td><a href="javascript:void(0);" onclick="FVFPCheckVideo(\'' . $_POST['id'] . '\',true) ">Check</a></td>
|
156 |
+
<td></td>
|
157 |
+
</tr>';
|
158 |
+
echo $output;
|
159 |
+
die;
|
160 |
+
}
|
161 |
+
?>
|
readme.txt
CHANGED
@@ -1,30 +1,40 @@
|
|
1 |
=== FV Wordpress Flowplayer ===
|
2 |
Contributors: FolioVision
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
|
|
7 |
|
8 |
-
Embed videos (FLV, H.264, and MP4) into posts or pages.
|
9 |
|
10 |
== Description ==
|
11 |
|
12 |
-
FV Wordpress Flowplayer plugin is a free, easy-to-use, and complete solution for embedding FLV or MP4 videos into your posts or pages.
|
13 |
|
14 |
-
* Plugin
|
15 |
* Supported video formats are FLV, H.264, and MP4. Multiple videos can be displayed in one post or page.
|
16 |
-
* Plugin
|
17 |
* Default options for all the embedded videos can be set in comprehensive administration menu.
|
18 |
-
*
|
19 |
|
20 |
1. Doesn't use jQuery, so there will be no future conflicts with other plugins.
|
21 |
2. Usage is simpler and forgiving, making the plugin easier to use.
|
22 |
-
3. It will never display any annoying flowplayer logos or copyrights over your videos.
|
23 |
4. Allows user to display clickable splash screen at the beginning of video (which not only looks good, but improves the performance significantly).
|
24 |
5. Allows user to display popup box after the video ends, with any HTML content (clickable links, images, styling, etc.)
|
25 |
6. Allows to upload videos and images through WP Media Library
|
26 |
7. Does not use configuration file, but Wordpress Options
|
27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
== Installation ==
|
29 |
|
30 |
There aren't any special requirements for FV Wordpress Flowplayer to work, and you don't need to install any additional plugins.
|
@@ -43,9 +53,7 @@ You need to use at least PHP 5, your site is probably still running on old PHP 5
|
|
43 |
|
44 |
= I installed the plugin, inserted the video, but it's not working, only a gray box appears. =
|
45 |
|
46 |
-
|
47 |
-
|
48 |
-
Solution 2: Try to download the zip file from and install it manually by copying it into your plugins directory. We experienced some problems when upgrading the plugin through Wordpress, when not all files were downloaded correctly.
|
49 |
|
50 |
= I tried to change some setting in the admin section, but without effect. =
|
51 |
|
@@ -76,7 +84,7 @@ This happens when you set width and height of the video other than are native di
|
|
76 |
|
77 |
Please upgrade to version at least 1.0.6.
|
78 |
|
79 |
-
= I would like to
|
80 |
|
81 |
Currently there is no support for other languages. Some localizations for Flowplayer exists, but there is no official support from flowplayer.org.
|
82 |
|
@@ -84,7 +92,7 @@ Currently there is no support for other languages. Some localizations for Flowpl
|
|
84 |
|
85 |
You can change this manually in the the models/flowplayer.php in the flowplayer_head function. It you use videos in widgets you might need to edit the function flowplayer_content in controller/frontend.php as well. Please be carefull when editing source codes.
|
86 |
|
87 |
-
= How do I insert
|
88 |
|
89 |
You need to use following code to include the shortcode into a sidebar:
|
90 |
|
@@ -92,6 +100,54 @@ echo apply_filters('the_content', '[flowplayer src=yourvideo.mp4 width=240 heigh
|
|
92 |
|
93 |
Fill the Flowplayer shortcode part according to your needs. The apply filter needs to be called because the flowplayer shortcodes are not parsen outside posts automatically. Also, please do not forget to add the echo at the beginning.
|
94 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
|
96 |
== Screenshots ==
|
97 |
|
@@ -101,6 +157,72 @@ Fill the Flowplayer shortcode part according to your needs. The apply filter nee
|
|
101 |
4. Configuration menu for administrators.
|
102 |
|
103 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
|
105 |
= 1.0.6 =
|
106 |
* widgets problems with splash image and controlbar fixed
|
@@ -160,7 +282,16 @@ Once the plugin is uploaded and activated, there will be a submenu of settings m
|
|
160 |
* AutoPlay - decides whether the video starts playing automatically, when the page/post is displayed.
|
161 |
* AutoBuffering - decides whether te video starts buffering automatically, when the page/post is displayed. If AutoPlay is set to true, you can ignore this setting.
|
162 |
* Popup Box - decides whether a popup box with "replay" and "share" buttons will be displayed when video ends.
|
|
|
|
|
|
|
|
|
|
|
163 |
* Colors of all the parts of flowplayer instances on page/post (controlbar, canvas, sliders, buttons, mouseover buttons, time and total time, progress and buffer sliders).
|
164 |
|
165 |
On the right side of this screen, you can see the current visual configuration of flowplayer. If you click Apply Changes button, this player's looks refreshes.
|
166 |
|
|
|
|
|
|
|
|
1 |
=== FV Wordpress Flowplayer ===
|
2 |
Contributors: FolioVision
|
3 |
+
Donate link: http://foliovision.com/donate/
|
4 |
+
Tags: video, flash, flowplayer, player, jwplayer
|
5 |
+
Requires at least: 2.9
|
6 |
+
Tested up to: 3.4.1
|
7 |
+
Stable tag: 1.2.17
|
8 |
|
9 |
+
Embed videos (FLV, H.264, and MP4) into posts or pages. Warning: this version includes Flowplayer logos on full screen video and on canvas.
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
+
FV Wordpress Flowplayer plugin is a free, easy-to-use, and complete solution for embedding FLV or MP4 videos into your posts or pages.
|
14 |
|
15 |
+
* Plugin contains unmodified opensource version of Flowplayer 3.2.3. This version of our FV player plugin does include Flowplayer branding. Last version without branding is 1.0.6.
|
16 |
* Supported video formats are FLV, H.264, and MP4. Multiple videos can be displayed in one post or page.
|
17 |
+
* Plugin tested compatible with all Wordpress versions from 2.5 through 3.0.1
|
18 |
* Default options for all the embedded videos can be set in comprehensive administration menu.
|
19 |
+
* In comparison with Wordpress Flowplayer plugin, there are several improvements:
|
20 |
|
21 |
1. Doesn't use jQuery, so there will be no future conflicts with other plugins.
|
22 |
2. Usage is simpler and forgiving, making the plugin easier to use.
|
23 |
+
3. It will never display any annoying flowplayer logos or copyrights over your videos. (No longer true. Future Foliovision unbranded non-Flowplayer plugin in preparation.)
|
24 |
4. Allows user to display clickable splash screen at the beginning of video (which not only looks good, but improves the performance significantly).
|
25 |
5. Allows user to display popup box after the video ends, with any HTML content (clickable links, images, styling, etc.)
|
26 |
6. Allows to upload videos and images through WP Media Library
|
27 |
7. Does not use configuration file, but Wordpress Options
|
28 |
|
29 |
+
**[Download now!](http://foliovision.com/seo-tools/wordpress/plugins/fv-wordpress-flowplayer)**
|
30 |
+
|
31 |
+
[Support](http://foliovision.com/seo-tools/wordpress/plugins/fv-wordpress-flowplayer) |
|
32 |
+
[Change Log](http://foliovision.com/seo-tools/wordpress/plugins/fv-wordpress-flowplayer/changelog) |
|
33 |
+
[Installation](http://foliovision.com/seo-tools/wordpress/plugins/fv-wordpress-flowplayer/installation)|
|
34 |
+
[Usage](http://foliovision.com/seo-tools/wordpress/plugins/fv-wordpress-flowplayer/user-guide) |
|
35 |
+
[FAQ](http://foliovision.com/seo-tools/wordpress/plugins/fv-wordpress-flowplayer/faq)
|
36 |
+
|
37 |
+
|
38 |
== Installation ==
|
39 |
|
40 |
There aren't any special requirements for FV Wordpress Flowplayer to work, and you don't need to install any additional plugins.
|
53 |
|
54 |
= I installed the plugin, inserted the video, but it's not working, only a gray box appears. =
|
55 |
|
56 |
+
FV Flowplayer calls some javascript from the footer. That means your footer.php file must contain the <?php wp_footer(); ?> Wordpress hook. Almost all themes do this out of the box, but if you've customised your theme there's a chance that you might have deleted this call.
|
|
|
|
|
57 |
|
58 |
= I tried to change some setting in the admin section, but without effect. =
|
59 |
|
84 |
|
85 |
Please upgrade to version at least 1.0.6.
|
86 |
|
87 |
+
= I would like to localize the play again button. =
|
88 |
|
89 |
Currently there is no support for other languages. Some localizations for Flowplayer exists, but there is no official support from flowplayer.org.
|
90 |
|
92 |
|
93 |
You can change this manually in the the models/flowplayer.php in the flowplayer_head function. It you use videos in widgets you might need to edit the function flowplayer_content in controller/frontend.php as well. Please be carefull when editing source codes.
|
94 |
|
95 |
+
= How do I insert flowplayer object outside the post, for example to a sidebar? =
|
96 |
|
97 |
You need to use following code to include the shortcode into a sidebar:
|
98 |
|
100 |
|
101 |
Fill the Flowplayer shortcode part according to your needs. The apply filter needs to be called because the flowplayer shortcodes are not parsen outside posts automatically. Also, please do not forget to add the echo at the beginning.
|
102 |
|
103 |
+
= How can I remove the black border around the video? =
|
104 |
+
|
105 |
+
The black border is defined in the style sheet, located in the /css/flowplayer.css at line 6
|
106 |
+
|
107 |
+
= I do own a license key and I would like to use the latest version Flowplayer provided to me. =
|
108 |
+
|
109 |
+
Replace the /flowplayer/commercial/flowplayer.swf with the newest Flowplayer (strip out additional version numbers from the file name). Go to admin section and enter your licence key. Don't forget to click 'Apply changes', and you're ready to use your commercial version.
|
110 |
+
|
111 |
+
= How do I change the size of the play button? =
|
112 |
+
|
113 |
+
The size is defined to be 83x83px, defined in /modules/flowplayer-frontend.php line 118.
|
114 |
+
|
115 |
+
= How do I change the position of the play button? =
|
116 |
+
|
117 |
+
The position of the play button is defined at two places, first is the css file (.splash_play_button) and in the /modules/flowplayer-frontend.php (line 118, starting with $splash = ...). To modify the vertical position modify top=round($height/2-45) to your custom value. Try for example values like 0 or $height to move the play button up or down.
|
118 |
+
|
119 |
+
= When viewing the video in fullscreen mode, it is stretched and looks deformed. =
|
120 |
+
|
121 |
+
If you have version 1.2.2 or higher, than go to settings and set Fit scaling to true.
|
122 |
+
|
123 |
+
For versions below 1.2.2, this happens because the scaling is set by default to fill. If you wish the video show up with correct aspect ratio, you need to add following piece of code into flowplayer-frontend.php, around the line 155 into the clip section:
|
124 |
+
|
125 |
+
scaling: \'fit\',
|
126 |
+
|
127 |
+
Also don't forget comma at the end of the line where appropriate. Be aware that this scaling will affect also non-fullscreen mode, which might result into borders around your video if the dimensions are not properly set.
|
128 |
+
|
129 |
+
= How can I style the popup? =
|
130 |
+
|
131 |
+
Check out .flowplayer_popup and .wpfp_custom_popup in /fv-wordpress-flowplayer/css/flowplayer.css. You might want to move your changes to your template CSS - make sure you use ID of container element, so your declarations will work even when the flowplayer.css is loaded later in the head section of your webpage.
|
132 |
+
|
133 |
+
= How can I style the popup? =
|
134 |
+
|
135 |
+
Check out .flowplayer_popup and .wpfp_custom_popup in /fv-wordpress-flowplayer/css/flowplayer.css. You might want to move your changes to your template CSS - make sure you use ID of container element, so your declarations will work even when the flowplayer.css is loaded later in the head section of your webpage.
|
136 |
+
|
137 |
+
= My videos are taking long time to load. =
|
138 |
+
|
139 |
+
1. Check your hosting for download speed.
|
140 |
+
2. Try to use different settings when encoding the videos, try to turn on the cache when encoding with [Quick Time](http://drop.foliovision.com/webwork/it/quick-time-pro-cache-hint.png)
|
141 |
+
|
142 |
+
= Is it possible to loop the video? =
|
143 |
+
|
144 |
+
No at the moment we do not support looping.
|
145 |
+
|
146 |
+
= How do I insert videos in playlist? =
|
147 |
+
|
148 |
+
Playlist feature is not supported right now.
|
149 |
+
|
150 |
+
=======
|
151 |
|
152 |
== Screenshots ==
|
153 |
|
157 |
4. Configuration menu for administrators.
|
158 |
|
159 |
== Changelog ==
|
160 |
+
|
161 |
+
= 1.2.17 =
|
162 |
+
* bugfix for wp-content paths
|
163 |
+
* fix for some warnings
|
164 |
+
* bugfix for popups and splash image at the end
|
165 |
+
|
166 |
+
= 1.2.16 =
|
167 |
+
* Flowplayer shortcodes and placeholders removed from feed
|
168 |
+
|
169 |
+
= 1.2.14 =
|
170 |
+
* Fixed Sharing permalink
|
171 |
+
|
172 |
+
= 1.2.14 =
|
173 |
+
* Option in settings to prevent doubling the link in the popup box, default option is set to false (do not double)
|
174 |
+
|
175 |
+
= 1.2.13 =
|
176 |
+
* Loading javascripts only when video is present on the page - optional, see settings page
|
177 |
+
|
178 |
+
= 1.2.12 =
|
179 |
+
* XSS fix
|
180 |
+
|
181 |
+
= 1.2.11 =
|
182 |
+
* FV Flowplayer removed from RSS feeds
|
183 |
+
|
184 |
+
= 1.2.10 =
|
185 |
+
* fix for HTTPS, thanks to Scott Elkin
|
186 |
+
|
187 |
+
= 1.2.9 =
|
188 |
+
* Bug with flush rules fixed
|
189 |
+
|
190 |
+
= 1.2.8 =
|
191 |
+
* added options for default video size
|
192 |
+
* problem with splasscreen at the end fixed
|
193 |
+
* audio plugin installed foraudio tracks
|
194 |
+
|
195 |
+
= 1.2.7 =
|
196 |
+
* Problem with widgets fixed
|
197 |
+
|
198 |
+
= 1.2.6 =
|
199 |
+
* Support functions for future extensions added
|
200 |
+
|
201 |
+
= 1.2.5 =
|
202 |
+
* Support functions for future extensions added
|
203 |
+
|
204 |
+
= 1.2.4 =
|
205 |
+
* Wizard fixes
|
206 |
+
* Added option for showing splash image at the end
|
207 |
+
|
208 |
+
= 1.2.3 =
|
209 |
+
* HTML 5 suport for mobile browsers (Thanks for donation from [enterpriseIT](http://enterpriseit.com/))
|
210 |
+
* incorrect paths fixed
|
211 |
+
|
212 |
+
= 1.2.2 =
|
213 |
+
* Option for keeping the aspect ratio of videos
|
214 |
+
* Class 'flowplayer_frontend' not found bug fixed
|
215 |
+
|
216 |
+
= 1.2.1 =
|
217 |
+
* License key entering fixed
|
218 |
+
* Color entering fixed
|
219 |
+
|
220 |
+
= 1.2.0 =
|
221 |
+
* Compatibility with the commercial version - possibility to insert licence key and get completely unbranded version
|
222 |
+
* Fixed the conflict with media library
|
223 |
+
|
224 |
+
= 1.1.0 =
|
225 |
+
* Flowplayer logos reintroduced at request of Wordpress.org
|
226 |
|
227 |
= 1.0.6 =
|
228 |
* widgets problems with splash image and controlbar fixed
|
282 |
* AutoPlay - decides whether the video starts playing automatically, when the page/post is displayed.
|
283 |
* AutoBuffering - decides whether te video starts buffering automatically, when the page/post is displayed. If AutoPlay is set to true, you can ignore this setting.
|
284 |
* Popup Box - decides whether a popup box with "replay" and "share" buttons will be displayed when video ends.
|
285 |
+
* Enable Full-screen Mode - select false if you do not wish the fullscreen option to be displayed.
|
286 |
+
* Allow User Uploads - select true if you like to upload new videos via Media Library.
|
287 |
+
* Enable Post Thumbnail - select true if you wish the screen shot appear as post thumbnail. Works only when uploading new splash image via Media Library.
|
288 |
+
* Convert old shortcodes with commas - older versions of this plugin used commas to sepparate shortcode parameters. This option will make sure it works with current version.
|
289 |
+
* Commercial Licence Key - enter your licence key here to get the completely unbranded version of the player
|
290 |
* Colors of all the parts of flowplayer instances on page/post (controlbar, canvas, sliders, buttons, mouseover buttons, time and total time, progress and buffer sliders).
|
291 |
|
292 |
On the right side of this screen, you can see the current visual configuration of flowplayer. If you click Apply Changes button, this player's looks refreshes.
|
293 |
|
294 |
+
== Upgrade Notice ==
|
295 |
+
|
296 |
+
= 1.1 =
|
297 |
+
Warning! This version includes Flowplayer logos on canvas and full screen. Do not upgrade if you would prefer an unbranded video player.
|
view/admin.php
CHANGED
@@ -4,55 +4,79 @@
|
|
4 |
*/
|
5 |
?>
|
6 |
<div class="wrap">
|
7 |
-
<table>
|
8 |
-
<tr>
|
9 |
-
<td style="width: 450px;">
|
10 |
<form id="wpfp_options" method="post" action="">
|
11 |
<div id="icon-options-general" class="icon32"></div>
|
12 |
<h2>FV Wordpress Flowplayer</h2>
|
13 |
<?php //echo flowplayer_check_errors($fp); ?>
|
14 |
<h3>Default Flowplayer Options:</h3>
|
15 |
-
<table>
|
|
|
16 |
<tr>
|
17 |
<td>AutoPlay: </td>
|
18 |
-
<td>
|
19 |
<select name="autoplay">
|
20 |
<?php echo flowplayer_bool_select($fp->conf['autoplay']); ?>
|
21 |
</select>
|
22 |
</td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
</tr>
|
24 |
-
<tr style="position: absolute; top: -9999em; left: -9999em;">
|
25 |
-
<td>Commercial License Key: </td>
|
26 |
-
<td>
|
27 |
-
<input type="text" size="20" name="key" id="key" value="<?php echo trim($fp->conf['key']); ?>" />
|
28 |
-
</td>
|
29 |
-
</tr>
|
30 |
<tr>
|
31 |
<td>Auto Buffering:</td>
|
32 |
-
<td><select name="autobuffer">
|
33 |
-
|
34 |
<?php echo flowplayer_bool_select($fp->conf['autobuffer']); ?>
|
35 |
-
|
36 |
</select></td>
|
37 |
</tr>
|
38 |
<tr>
|
39 |
<td>Popup Box:</td>
|
40 |
-
<td><select name="popupbox">
|
41 |
-
|
42 |
<?php echo flowplayer_bool_select($fp->conf['popupbox']); ?>
|
43 |
-
|
|
|
|
|
|
|
|
|
|
|
44 |
</select></td>
|
45 |
</tr>
|
46 |
<tr>
|
47 |
<td>Enable Full-screen Mode:</td>
|
48 |
-
<td><select name="allowfullscreen">
|
49 |
<?php echo flowplayer_bool_select($fp->conf['allowfullscreen']); ?>
|
50 |
-
|
|
|
|
|
|
|
|
|
|
|
51 |
</select></td>
|
52 |
</tr>
|
53 |
<tr>
|
54 |
<td>Allow User Uploads: </td>
|
55 |
-
<td>
|
56 |
<select name="allowuploads">
|
57 |
<?php echo flowplayer_bool_select($fp->conf['allowuploads']); ?>
|
58 |
</select>
|
@@ -60,37 +84,58 @@
|
|
60 |
</tr>
|
61 |
<tr>
|
62 |
<td>Enable Post Thumbnail: </td>
|
63 |
-
<td>
|
64 |
<select name="postthumbnail">
|
65 |
<?php echo flowplayer_bool_select($fp->conf['postthumbnail']); ?>
|
66 |
</select>
|
67 |
</td>
|
68 |
-
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
<tr>
|
70 |
<td>Convert old shortcodes with commas (<abbr title="Older versions of this plugin used commas to sepparate shortcode parameters. This option will make sure it works with current version. Turn this off if you have some problems with display or other plugins which use shortcodes.">?</abbr>): </td>
|
71 |
-
<td>
|
72 |
<select name="commas">
|
73 |
<?php echo flowplayer_bool_select($fp->conf['commas']); ?>
|
74 |
</select>
|
75 |
</td>
|
76 |
</tr>
|
77 |
-
|
78 |
-
<?php echo include dirname( __FILE__ ) . '/../view/colours.php'; ?>
|
79 |
-
|
80 |
<tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
<td>
|
|
|
82 |
</td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
<td>
|
84 |
<input type="submit" name="submit" class="button-primary" value="Apply Changes" style="margin-top: 2ex;"/>
|
85 |
</td>
|
86 |
</tr>
|
87 |
-
|
|
|
88 |
<tr>
|
89 |
-
<td colspan="
|
90 |
<h3>Description:</h3>
|
91 |
<ul>
|
92 |
<li>FV Wordpress Flowplayer is a completely non-commercial solution for embedding video on Wordpress websites.</li>
|
93 |
-
<li>It contains opensource version of Flowplayer, with removed logo and copyright notice. </li>
|
94 |
<li>Supported video formats are <strong>FLV</strong>, <strong>H.264</strong>, and <strong>MP4</strong>. Multiple videos can be displayed in one post or page.</li>
|
95 |
<li>Default options for all the embedded videos can be set in the menu above.</li>
|
96 |
</ul>
|
@@ -106,35 +151,30 @@
|
|
106 |
<p>When user uploads are allowed, uploading or selecting video from WP Media Library is available. To insert selected video, simply use the 'Insert into Post' button.</p>
|
107 |
<h4>Optional parameters:</h4>
|
108 |
<ul style="text-align: left;">
|
109 |
-
<li><code>width</code> and <code>height</code> specify the dimensions of played video in pixels. If they are not set, the default size is 320x240.<br />
|
110 |
-
<i>Example</i
|
111 |
-
<li><code>splash</code> parameter can be used to display a custom splash image before the video is started. Just like in case of <code>src</code>
|
112 |
parameter, its value can be either complete URL, or filename of an image located in /videos/ folder.<br />
|
113 |
-
<i>Example</i
|
114 |
-
<li><code>autoplay</code> parameter specify wheter the video should start to play automaticaly after the page is loaded. This parameter overrides the default autoplay setting above. Its value can be either true or false.<br />
|
115 |
-
<i>Example</i
|
116 |
-
<li><code>popup</code> parameter can be used to display any HTML code after the video finishes (ideal for advertisment or links to similar videos).
|
117 |
Content you want to display must be between simgle quotes (<code>''</code>).<br />
|
118 |
-
<i>Example</i
|
119 |
-
<li><code>controlbar</code> parameter can be used to show or hide the control bar. Value <code>show</code> will keep the controlbar visible for the whole duration of the video, and value <code>hide</code> will completely hide the control bar. If this parameter is not set, the default autohide is applied.<br />
|
120 |
-
<i>Example</i
|
121 |
-
<li><code>redirect</code> parameter can be used to redirect to another page (in a new tab) after the video stops playing.<br />
|
122 |
-
<i>Example</i
|
|
|
|
|
123 |
</ul>
|
124 |
</td>
|
125 |
<td></td>
|
126 |
</tr>
|
127 |
</table>
|
128 |
</form>
|
129 |
-
</td>
|
130 |
-
<td style="padding: 3em; vertical-align: top;">
|
131 |
-
<a id="player" class="flowplayer_div" style="display:block;width:400px;height:300px;"></a>
|
132 |
-
</td>
|
133 |
-
</tr>
|
134 |
-
</table>
|
135 |
|
136 |
<script defer="defer" language="Javascript" type="text/javascript">
|
137 |
-
|
138 |
//load player
|
139 |
$f("player", "<?php echo PLAYER; ?>", {
|
140 |
<?php echo (isset($fp->conf['key'])&&strlen($fp->conf['key'])>0?'key:\''.trim($fp->conf['key']).'\',':''); ?>
|
@@ -143,40 +183,36 @@
|
|
143 |
'controls: { buttonOverColor: \''.trim($fp->conf['buttonOverColor']).'\', sliderColor: \''. trim($fp->conf['sliderColor']).'\', bufferColor: \''. trim($fp->conf['bufferColor']).'\', sliderGradient: \'none\', progressGradient: \'medium\', durationColor: \''. trim($fp->conf['durationColor']).'\', progressColor: \''. trim($fp->conf['progressColor']).'\', backgroundColor: \''. trim($fp->conf['backgroundColor']).'\', timeColor: \''. trim($fp->conf['timeColor']).'\', buttonColor: \''. trim($fp->conf['buttonColor']).'\', backgroundGradient: \'none\', bufferGradient: \'none\', opacity:0.9, fullscreen: '.trim($fp->conf['allowfullscreen']).',autoHide: \'always\',hideDelay: 500} ':'controls:null'); ?>
|
144 |
},
|
145 |
clip: {
|
146 |
-
url:'
|
147 |
autoPlay: '<?php if (isset($fp->conf["autoplay"])) { echo trim($fp->conf["autoplay"]); } else { echo(false); } ?>',
|
148 |
-
|
|
|
149 |
},
|
150 |
-
|
151 |
-
|
152 |
<?php
|
153 |
if($fp->conf['logoenable'] == 'true'){
|
154 |
echo 'logo: {url: \'http://'.$fp->conf['logo'].'\', fullscreenOnly: '.trim($fp->conf['fullscreenonly']).', displayTime: 0, linkUrl: \'http://'.$fp->conf['logolink'].'\'},';
|
155 |
}
|
156 |
?>
|
157 |
-
|
158 |
canvas: {
|
159 |
backgroundColor:'<?php echo trim($fp->conf["canvas"]); ?>'
|
160 |
},
|
161 |
onLoad: function() {
|
162 |
-
|
163 |
},
|
164 |
onUnload: function() {
|
165 |
-
|
166 |
}
|
167 |
});
|
168 |
-
|
169 |
</script>
|
170 |
-
|
171 |
</div>
|
172 |
-
|
173 |
<?php
|
174 |
if(isset($_POST['submit'])) {
|
|
|
175 |
/**
|
176 |
* Write the configuration into file, if the form was submitted.
|
177 |
*/
|
178 |
$fp->_set_conf();
|
179 |
-
|
180 |
* Refresh the page.
|
181 |
*/
|
182 |
?>
|
@@ -188,6 +224,9 @@
|
|
188 |
<?php
|
189 |
}
|
190 |
?>
|
191 |
-
|
192 |
-
|
193 |
-
|
|
|
|
|
|
4 |
*/
|
5 |
?>
|
6 |
<div class="wrap">
|
|
|
|
|
|
|
7 |
<form id="wpfp_options" method="post" action="">
|
8 |
<div id="icon-options-general" class="icon32"></div>
|
9 |
<h2>FV Wordpress Flowplayer</h2>
|
10 |
<?php //echo flowplayer_check_errors($fp); ?>
|
11 |
<h3>Default Flowplayer Options:</h3>
|
12 |
+
<table style="width: 800px;">
|
13 |
+
<tr><th style="width:35%"></th><th style="width:15%"></th><th colspan="2" style="width:50%"></th></tr>
|
14 |
<tr>
|
15 |
<td>AutoPlay: </td>
|
16 |
+
<td style="text-align:right;">
|
17 |
<select name="autoplay">
|
18 |
<?php echo flowplayer_bool_select($fp->conf['autoplay']); ?>
|
19 |
</select>
|
20 |
</td>
|
21 |
+
<td colspan="2" rowspan="10" style="padding-left: 30px; vertical-align: top;">
|
22 |
+
<script type="text/javascript" src="<?php echo RELATIVE_PATH; ?>/js/jscolor/jscolor.js"></script>
|
23 |
+
<script type="text/javascript" src="<?php echo RELATIVE_PATH; ?>/flowplayer/flowplayer.min.js"></script>
|
24 |
+
<?php
|
25 |
+
echo "<!--[if lt IE 7.]>
|
26 |
+
<script defer type=\"text/javascript\" src=\"" . RELATIVE_PATH . "/js/pngfix.js\"></script>
|
27 |
+
<![endif]-->
|
28 |
+
<script type=\"text/javascript\">
|
29 |
+
/*<![CDATA[*/
|
30 |
+
function fp_replay(hash) {
|
31 |
+
var fp = document.getElementById('wpfp_'+hash);
|
32 |
+
var popup = document.getElementById('wpfp_'+hash+'_popup');
|
33 |
+
fp.removeChild(popup);
|
34 |
+
flowplayer('wpfp_'+hash).play();
|
35 |
+
}
|
36 |
+
function fp_share(hash) {
|
37 |
+
var cp = document.getElementById('wpfp_'+hash+'_custom_popup');
|
38 |
+
cp.innerHTML = '<div style=\"margin-top: 10px; text-align: center;\"><label for=\"permalink\" style=\"color: white;\">Permalink to this page:</label><input onclick=\"this.select();\" id=\"permalink\" name=\"permalink\" type=\"text\" value=\"http://".$_SERVER['SERVER_NAME'].urlencode($_SERVER['REQUEST_URI'])."\" /></div>';
|
39 |
+
}
|
40 |
+
/*]]>*/
|
41 |
+
</script>";
|
42 |
+
?>
|
43 |
+
|
44 |
+
<a id="player" class="flowplayer_div" style="display:block;width:<?php echo $fp->conf['width']; ?>px;height:<?php echo $fp->conf['height']; ?>px;"></a>
|
45 |
+
</td>
|
46 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
<tr>
|
48 |
<td>Auto Buffering:</td>
|
49 |
+
<td style="text-align:right"><select name="autobuffer">
|
|
|
50 |
<?php echo flowplayer_bool_select($fp->conf['autobuffer']); ?>
|
|
|
51 |
</select></td>
|
52 |
</tr>
|
53 |
<tr>
|
54 |
<td>Popup Box:</td>
|
55 |
+
<td style="text-align:right"><select name="popupbox">
|
|
|
56 |
<?php echo flowplayer_bool_select($fp->conf['popupbox']); ?>
|
57 |
+
</select></td>
|
58 |
+
</tr>
|
59 |
+
<tr>
|
60 |
+
<td>Highlight Link in Popup:</td>
|
61 |
+
<td style="text-align:right"><select name="linkhighlight">
|
62 |
+
<?php echo flowplayer_bool_select($fp->conf['linkhighlight']); ?>
|
63 |
</select></td>
|
64 |
</tr>
|
65 |
<tr>
|
66 |
<td>Enable Full-screen Mode:</td>
|
67 |
+
<td style="text-align:right"><select name="allowfullscreen">
|
68 |
<?php echo flowplayer_bool_select($fp->conf['allowfullscreen']); ?>
|
69 |
+
</select></td>
|
70 |
+
</tr>
|
71 |
+
<tr>
|
72 |
+
<td>Fit scaling (<abbr title="If set to true, the original aspect ratio of the video will be used to display the video in fullscreen mode as well as when embedded in the page.">?</abbr>):</td>
|
73 |
+
<td style="text-align:right"><select name="scaling">
|
74 |
+
<?php echo flowplayer_bool_select($fp->conf['scaling']); ?>
|
75 |
</select></td>
|
76 |
</tr>
|
77 |
<tr>
|
78 |
<td>Allow User Uploads: </td>
|
79 |
+
<td style="text-align:right">
|
80 |
<select name="allowuploads">
|
81 |
<?php echo flowplayer_bool_select($fp->conf['allowuploads']); ?>
|
82 |
</select>
|
84 |
</tr>
|
85 |
<tr>
|
86 |
<td>Enable Post Thumbnail: </td>
|
87 |
+
<td style="text-align:right">
|
88 |
<select name="postthumbnail">
|
89 |
<?php echo flowplayer_bool_select($fp->conf['postthumbnail']); ?>
|
90 |
</select>
|
91 |
</td>
|
92 |
+
</tr>
|
93 |
+
<tr>
|
94 |
+
<td>Insert scripts only when needed (<abbr title="By default, all javascripts are being inserted into the page all the time. By enabling this option you will eliminate instertion of these script if video is not present on the page. If insert video outside the loop, you may need to keep this feature disabled.">?</abbr>): </td>
|
95 |
+
<td style="text-align:right">
|
96 |
+
<select name="optimizejs">
|
97 |
+
<?php echo flowplayer_bool_select($fp->conf['optimizejs']); ?>
|
98 |
+
</select>
|
99 |
+
</td>
|
100 |
+
</tr>
|
101 |
<tr>
|
102 |
<td>Convert old shortcodes with commas (<abbr title="Older versions of this plugin used commas to sepparate shortcode parameters. This option will make sure it works with current version. Turn this off if you have some problems with display or other plugins which use shortcodes.">?</abbr>): </td>
|
103 |
+
<td style="text-align:right">
|
104 |
<select name="commas">
|
105 |
<?php echo flowplayer_bool_select($fp->conf['commas']); ?>
|
106 |
</select>
|
107 |
</td>
|
108 |
</tr>
|
|
|
|
|
|
|
109 |
<tr>
|
110 |
+
<td colspan="2">Default video size [px]:
|
111 |
+
<span style="float:right">
|
112 |
+
W: <input type="text" size="4" name="width" id="width" value="<?php echo trim($fp->conf['width']); ?>" />
|
113 |
+
H: <input type="text" size="4" name="height" id="height" value="<?php echo trim($fp->conf['height']); ?>" /> </span>
|
114 |
+
</td>
|
115 |
+
</tr>
|
116 |
+
<tr>
|
117 |
+
<td colspan="2">Commercial License Key: <input type="text" size="40" name="key" id="key" value="<?php echo trim($fp->conf['key']); ?>" style="float:right" /></td>
|
118 |
<td>
|
119 |
+
|
120 |
</td>
|
121 |
+
</tr>
|
122 |
+
</table>
|
123 |
+
<table style="width: 400px;">
|
124 |
+
<tr><td><strong>Colors</strong></td><td></td></tr>
|
125 |
+
<?php include dirname( __FILE__ ) . '/../view/colours.php'; ?>
|
126 |
+
<tr>
|
127 |
+
<td></td><td></td><td></td>
|
128 |
<td>
|
129 |
<input type="submit" name="submit" class="button-primary" value="Apply Changes" style="margin-top: 2ex;"/>
|
130 |
</td>
|
131 |
</tr>
|
132 |
+
</table>
|
133 |
+
<table style="width: 800px;">
|
134 |
<tr>
|
135 |
+
<td colspan="4" style="text-align: justify;">
|
136 |
<h3>Description:</h3>
|
137 |
<ul>
|
138 |
<li>FV Wordpress Flowplayer is a completely non-commercial solution for embedding video on Wordpress websites.</li>
|
|
|
139 |
<li>Supported video formats are <strong>FLV</strong>, <strong>H.264</strong>, and <strong>MP4</strong>. Multiple videos can be displayed in one post or page.</li>
|
140 |
<li>Default options for all the embedded videos can be set in the menu above.</li>
|
141 |
</ul>
|
151 |
<p>When user uploads are allowed, uploading or selecting video from WP Media Library is available. To insert selected video, simply use the 'Insert into Post' button.</p>
|
152 |
<h4>Optional parameters:</h4>
|
153 |
<ul style="text-align: left;">
|
154 |
+
<li><code><strong>width</strong></code> and <code><strong>height</strong></code> specify the dimensions of played video in pixels. If they are not set, the default size is 320x240.<br />
|
155 |
+
<i>Example</i>: <code>[flowplayer src='example.flv' width=640 height=480]</code></li>
|
156 |
+
<li><code><strong>splash</strong></code> parameter can be used to display a custom splash image before the video is started. Just like in case of <code>src</code>
|
157 |
parameter, its value can be either complete URL, or filename of an image located in /videos/ folder.<br />
|
158 |
+
<i>Example</i>: <code>[flowplayer src='example.flv' splash=image.jpg]</code></li>
|
159 |
+
<li><code><strong>autoplay</strong></code> parameter specify wheter the video should start to play automaticaly after the page is loaded. This parameter overrides the default autoplay setting above. Its value can be either true or false.<br />
|
160 |
+
<i>Example</i>: <code>[flowplayer src='example.flv' autoplay=true]</code></li>
|
161 |
+
<li><code><strong>popup</strong></code> parameter can be used to display any HTML code after the video finishes (ideal for advertisment or links to similar videos).
|
162 |
Content you want to display must be between simgle quotes (<code>''</code>).<br />
|
163 |
+
<i>Example</i>: <code>[flowplayer src='example.flv' popup='<p>some HTML content</p>']</code></li>
|
164 |
+
<li><code><strong>controlbar</strong></code> parameter can be used to show or hide the control bar. Value <code>show</code> will keep the controlbar visible for the whole duration of the video, and value <code>hide</code> will completely hide the control bar. If this parameter is not set, the default autohide is applied.<br />
|
165 |
+
<i>Example</i>: <code>[flowplayer src='example.flv' controlbar='show']</code></li>
|
166 |
+
<li><code><strong>redirect</strong></code> parameter can be used to redirect to another page (in a new tab) after the video stops playing.<br />
|
167 |
+
<i>Example</i>: <code>[flowplayer src='example.flv' redirect='http://www.site.com']</code></li>
|
168 |
+
<li><code><strong>splashend</strong></code> set to show if you want to show the splash image also at the end of the video. The image has to have exactly the same dimensions as the video, there is no stretching applied.<br />
|
169 |
+
<i>Example</i>: <code>[flowplayer src='example.flv' splash=image.jpg splashend=show]</code></li>
|
170 |
</ul>
|
171 |
</td>
|
172 |
<td></td>
|
173 |
</tr>
|
174 |
</table>
|
175 |
</form>
|
|
|
|
|
|
|
|
|
|
|
|
|
176 |
|
177 |
<script defer="defer" language="Javascript" type="text/javascript">
|
|
|
178 |
//load player
|
179 |
$f("player", "<?php echo PLAYER; ?>", {
|
180 |
<?php echo (isset($fp->conf['key'])&&strlen($fp->conf['key'])>0?'key:\''.trim($fp->conf['key']).'\',':''); ?>
|
183 |
'controls: { buttonOverColor: \''.trim($fp->conf['buttonOverColor']).'\', sliderColor: \''. trim($fp->conf['sliderColor']).'\', bufferColor: \''. trim($fp->conf['bufferColor']).'\', sliderGradient: \'none\', progressGradient: \'medium\', durationColor: \''. trim($fp->conf['durationColor']).'\', progressColor: \''. trim($fp->conf['progressColor']).'\', backgroundColor: \''. trim($fp->conf['backgroundColor']).'\', timeColor: \''. trim($fp->conf['timeColor']).'\', buttonColor: \''. trim($fp->conf['buttonColor']).'\', backgroundGradient: \'none\', bufferGradient: \'none\', opacity:0.9, fullscreen: '.trim($fp->conf['allowfullscreen']).',autoHide: \'always\',hideDelay: 500} ':'controls:null'); ?>
|
184 |
},
|
185 |
clip: {
|
186 |
+
url:'http://foliovision.com/videos/example.flv',
|
187 |
autoPlay: '<?php if (isset($fp->conf["autoplay"])) { echo trim($fp->conf["autoplay"]); } else { echo(false); } ?>',
|
188 |
+
scaling: '<?php if (isset($fp->conf["scaling"])) { echo trim($fp->conf["scaling"]); } else { echo(false); } ?>',
|
189 |
+
autoBuffering: '<?php if (isset($fp->conf["autobuffer"])) { echo trim($fp->conf["autobuffer"]); } else { echo "false"; } ?>'
|
190 |
},
|
|
|
|
|
191 |
<?php
|
192 |
if($fp->conf['logoenable'] == 'true'){
|
193 |
echo 'logo: {url: \'http://'.$fp->conf['logo'].'\', fullscreenOnly: '.trim($fp->conf['fullscreenonly']).', displayTime: 0, linkUrl: \'http://'.$fp->conf['logolink'].'\'},';
|
194 |
}
|
195 |
?>
|
|
|
196 |
canvas: {
|
197 |
backgroundColor:'<?php echo trim($fp->conf["canvas"]); ?>'
|
198 |
},
|
199 |
onLoad: function() {
|
200 |
+
jQuery(":input[name=tgt]").removeAttr("disabled");
|
201 |
},
|
202 |
onUnload: function() {
|
203 |
+
jQuery(":input[name=tgt]").attr("disabled", true);
|
204 |
}
|
205 |
});
|
|
|
206 |
</script>
|
|
|
207 |
</div>
|
|
|
208 |
<?php
|
209 |
if(isset($_POST['submit'])) {
|
210 |
+
// url:'<?php echo RELATIVE_PATH; ? >/flowplayer/example.flv',
|
211 |
/**
|
212 |
* Write the configuration into file, if the form was submitted.
|
213 |
*/
|
214 |
$fp->_set_conf();
|
215 |
+
/**
|
216 |
* Refresh the page.
|
217 |
*/
|
218 |
?>
|
224 |
<?php
|
225 |
}
|
226 |
?>
|
227 |
+
<?php
|
228 |
+
if (get_option('wp_mobile_video_active') == 'enabled')
|
229 |
+
if (function_exists('wpvideo_check_domain')){
|
230 |
+
wpvideo_check_domain();
|
231 |
+
}
|
232 |
+
?>
|
view/backend-head.php
CHANGED
@@ -1,12 +1,21 @@
|
|
1 |
<?php
|
|
|
2 |
/**
|
|
|
3 |
* Displays metatags for administrator backend.
|
|
|
4 |
*/
|
|
|
5 |
?>
|
|
|
6 |
<!-- FV Flowplayer For Wordpress ADMIN Javascript Start -->
|
7 |
|
8 |
-
|
9 |
-
|
|
|
10 |
<link rel="stylesheet" href="<?php echo RELATIVE_PATH; ?>/css/flowplayer.css" type="text/css" media="screen" />
|
|
|
11 |
<!-- FV Flowplayer For Wordpress ADMIN Javascript END -->
|
12 |
|
|
|
|
1 |
<?php
|
2 |
+
|
3 |
/**
|
4 |
+
|
5 |
* Displays metatags for administrator backend.
|
6 |
+
|
7 |
*/
|
8 |
+
|
9 |
?>
|
10 |
+
|
11 |
<!-- FV Flowplayer For Wordpress ADMIN Javascript Start -->
|
12 |
|
13 |
+
|
14 |
+
|
15 |
+
|
16 |
<link rel="stylesheet" href="<?php echo RELATIVE_PATH; ?>/css/flowplayer.css" type="text/css" media="screen" />
|
17 |
+
|
18 |
<!-- FV Flowplayer For Wordpress ADMIN Javascript END -->
|
19 |
|
20 |
+
|
21 |
+
|
view/colours.php
CHANGED
@@ -9,38 +9,31 @@
|
|
9 |
</tr>
|
10 |
<tr>
|
11 |
<td><label for="backgroundColor">controlbar</label></td>
|
12 |
-
<td><input class="color" type="text" name="backgroundColor" id="backgroundColor" value="<?php echo $fp->conf['backgroundColor']; ?>" /></td>
|
|
|
|
|
13 |
</tr>
|
14 |
<tr>
|
15 |
<td><label for="canvas">canvas</label></td>
|
16 |
-
<td><input class="color" type="text" name="canvas" id="canvas" value="<?php echo $fp->conf['canvas']; ?>" /></td>
|
|
|
|
|
17 |
</tr>
|
18 |
<tr>
|
19 |
<td><label for="sliderColor">sliders</label></td>
|
20 |
-
<td><input class="color" type="text" name="sliderColor" id="sliderColor" value="<?php echo $fp->conf['sliderColor']; ?>" /></td>
|
|
|
|
|
21 |
</tr>
|
22 |
<tr>
|
23 |
<td><label for="buttonColor">buttons</label></td>
|
24 |
-
<td><input class="color" type="text" name="buttonColor" id="buttonColor" value="<?php echo $fp->conf['buttonColor']; ?>" /></td>
|
|
|
|
|
25 |
</tr>
|
26 |
<tr>
|
27 |
<td><label for="buttonOverColor">mouseover</label></td>
|
28 |
-
<td><input class="color" type="text" name="buttonOverColor" id="buttonOverColor" value="<?php echo $fp->conf['buttonOverColor']; ?>" /></td>
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
<td><input class="color" type="text" name="durationColor" id="durationColor" value="<?php echo $fp->conf['durationColor']; ?>" /></td>
|
33 |
-
</tr>
|
34 |
-
<tr>
|
35 |
-
<td><label for="timeColor">time</label></td>
|
36 |
-
<td><input class="color" type="text" name="timeColor" id="timeColor" value="<?php echo $fp->conf['timeColor']; ?>" /></td>
|
37 |
-
</tr>
|
38 |
-
<tr>
|
39 |
-
<td><label for="progressColor">progress</label></td>
|
40 |
-
<td><input class="color" type="text" name="progressColor" id="progressColor" value="<?php echo $fp->conf['progressColor']; ?>" /></td>
|
41 |
-
</tr>
|
42 |
-
<tr>
|
43 |
-
<td><label for="bufferColor">buffer</label></td>
|
44 |
-
<td><input class="color" type="text" name="bufferColor" id="bufferColor" value="<?php echo $fp->conf['bufferColor']; ?>" /></td>
|
45 |
-
</tr>
|
46 |
-
|
9 |
</tr>
|
10 |
<tr>
|
11 |
<td><label for="backgroundColor">controlbar</label></td>
|
12 |
+
<td style="text-align:right"><input class="color" type="text" size="5" name="backgroundColor" id="backgroundColor" value="<?php echo $fp->conf['backgroundColor']; ?>" /></td>
|
13 |
+
<td style="padding-left:20px;"><label for="durationColor">total time</label></td>
|
14 |
+
<td style="text-align:right"><input class="color" type="text" size="5" name="durationColor" id="durationColor" value="<?php echo $fp->conf['durationColor']; ?>" /></td>
|
15 |
</tr>
|
16 |
<tr>
|
17 |
<td><label for="canvas">canvas</label></td>
|
18 |
+
<td style="text-align:right"><input class="color" type="text" size="5" name="canvas" id="canvas" value="<?php echo $fp->conf['canvas']; ?>" /></td>
|
19 |
+
<td style="padding-left:20px;"><label for="timeColor">time</label></td>
|
20 |
+
<td style="text-align:right"><input class="color" type="text" size="5" name="timeColor" id="timeColor" value="<?php echo $fp->conf['timeColor']; ?>" /></td>
|
21 |
</tr>
|
22 |
<tr>
|
23 |
<td><label for="sliderColor">sliders</label></td>
|
24 |
+
<td style="text-align:right"><input class="color" type="text" size="5" name="sliderColor" id="sliderColor" value="<?php echo $fp->conf['sliderColor']; ?>" /></td>
|
25 |
+
<td style="padding-left:20px;"><label for="progressColor">progress</label></td>
|
26 |
+
<td style="text-align:right"><input class="color" type="text" size="5" name="progressColor" id="progressColor" value="<?php echo $fp->conf['progressColor']; ?>" /></td>
|
27 |
</tr>
|
28 |
<tr>
|
29 |
<td><label for="buttonColor">buttons</label></td>
|
30 |
+
<td style="text-align:right"><input class="color" type="text" size="5" name="buttonColor" id="buttonColor" value="<?php echo $fp->conf['buttonColor']; ?>" /></td>
|
31 |
+
<td style="padding-left:20px;"><label for="bufferColor">buffer</label></td>
|
32 |
+
<td style="text-align:right"><input class="color" type="text" size="5" name="bufferColor" id="bufferColor" value="<?php echo $fp->conf['bufferColor']; ?>" /></td>
|
33 |
</tr>
|
34 |
<tr>
|
35 |
<td><label for="buttonOverColor">mouseover</label></td>
|
36 |
+
<td style="text-align:right"><input class="color" type="text" size="5" name="buttonOverColor" id="buttonOverColor" value="<?php echo $fp->conf['buttonOverColor']; ?>" /></td>
|
37 |
+
<td></td>
|
38 |
+
<td></td>
|
39 |
+
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
view/frontend-head.php
CHANGED
@@ -2,26 +2,51 @@
|
|
2 |
/**
|
3 |
* Displays metatags for frontend.
|
4 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
?>
|
7 |
-
<script type="text/javascript" src="<?php echo RELATIVE_PATH; ?>/flowplayer/flowplayer.min.js"></script>
|
8 |
<link rel="stylesheet" href="<?php echo RELATIVE_PATH; ?>/css/flowplayer.css" type="text/css" media="screen" />
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
<script type
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
|
|
|
|
|
|
|
|
|
|
27 |
|
|
2 |
/**
|
3 |
* Displays metatags for frontend.
|
4 |
*/
|
5 |
+
?>
|
6 |
+
<?php
|
7 |
+
$aUserAgents = array('iphone', 'ipod', 'iPad', 'aspen', 'incognito', 'webmate', 'android', 'Android', 'dream', 'cupcake', 'froyo','blackberry', 'blackberry9500', 'blackberry9520', 'blackberry9530', 'blackberry9550', 'blackberry9800', 'Palm', 'webos', 's8000', 'bada', 'Opera Mini', 'Opera Mobi', 'htc_touch_pro');
|
8 |
+
$mobileUserAgent = false;
|
9 |
+
foreach($aUserAgents as $userAgent){
|
10 |
+
if(stripos($_SERVER['HTTP_USER_AGENT'],$userAgent))
|
11 |
+
$mobileUserAgent = true;
|
12 |
+
}
|
13 |
+
function ffilesize($file){
|
14 |
+
$ch = curl_init($file);
|
15 |
+
curl_setopt($ch, CURLOPT_NOBODY, true);
|
16 |
+
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
17 |
+
curl_setopt($ch, CURLOPT_HEADER, true);
|
18 |
+
$data = curl_exec($ch);
|
19 |
+
curl_close($ch);
|
20 |
+
if ($data === false)
|
21 |
+
return false;
|
22 |
+
if (preg_match('/Content-Length: (\d+)/', $data, $matches))
|
23 |
+
return (float)$matches[1];
|
24 |
+
}
|
25 |
|
26 |
?>
|
|
|
27 |
<link rel="stylesheet" href="<?php echo RELATIVE_PATH; ?>/css/flowplayer.css" type="text/css" media="screen" />
|
28 |
+
<?php if( $mobileUserAgent == false ){
|
29 |
+
$conf = get_option( 'fvwpflowplayer' );
|
30 |
+
if (!isset($conf['optimizejs']) || (!$conf['optimizejs']) || ($conf['optimizejs']=='false')){
|
31 |
+
echo "<script type=\"text/javascript\" src=\"" . RELATIVE_PATH . "/flowplayer/flowplayer.min.js\"></script>\n";
|
32 |
+
echo "<script type=\"text/javascript\" src=\"" . RELATIVE_PATH . "/js/checkvideo.js\"></script>\n";
|
33 |
+
echo "<!--[if lt IE 7.]>
|
34 |
+
<script defer type=\"text/javascript\" src=\"" . RELATIVE_PATH . "/js/pngfix.js\"></script>
|
35 |
+
<![endif]-->
|
36 |
+
<script type=\"text/javascript\">
|
37 |
+
/*<![CDATA[*/
|
38 |
+
function fp_replay(hash) {
|
39 |
+
var fp = document.getElementById('wpfp_'+hash);
|
40 |
+
var popup = document.getElementById('wpfp_'+hash+'_popup');
|
41 |
+
fp.removeChild(popup);
|
42 |
+
flowplayer('wpfp_'+hash).play();
|
43 |
+
}
|
44 |
+
function fp_share(hash) {
|
45 |
+
var cp = document.getElementById('wpfp_'+hash+'_custom_popup');
|
46 |
+
cp.innerHTML = '<div style=\"margin-top: 10px; text-align: center;\"><label for=\"permalink\" style=\"color: white;\">Permalink to this page:</label><input onclick=\"this.select();\" id=\"permalink\" name=\"permalink\" type=\"text\" value=\"http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']."\" /></div>';
|
47 |
+
}
|
48 |
+
/*]]>*/
|
49 |
+
</script>";
|
50 |
+
}
|
51 |
|
52 |
+
} ?>
|
view/wizard.php
CHANGED
@@ -1,10 +1,17 @@
|
|
1 |
-
<?
|
2 |
if (isset($_COOKIE["selected_video"]))
|
3 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
if (isset($_COOKIE["selected_image"]))
|
5 |
-
$
|
6 |
-
|
7 |
-
|
8 |
$post_id = intval($_REQUEST['post_id']);
|
9 |
//load configuration file:
|
10 |
$conf = get_option( 'fvwpflowplayer' );
|
@@ -15,7 +22,31 @@ if (isset($_COOKIE["selected_image"]))
|
|
15 |
if (isset($conf["postthumbnail"]))
|
16 |
$post_thumbnail = $conf["postthumbnail"];
|
17 |
|
18 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
$splash_types = array('jpg','jpeg','gif','png', 'bmp','jpe');
|
20 |
if (isset($selected_attachment['url'])) {
|
21 |
$path_parts = pathinfo($selected_attachment['url']);
|
@@ -23,28 +54,31 @@ if (isset($_COOKIE["selected_image"]))
|
|
23 |
$uploaded_video = $selected_attachment['url'];
|
24 |
if (in_array($path_parts['extension'], $splash_types))
|
25 |
$uploaded_image = $selected_attachment['url'];
|
26 |
-
}
|
27 |
-
|
28 |
$serv = $_SERVER['SERVER_NAME'];
|
29 |
$pattern = '/'.$serv.'(.*)/';
|
30 |
-
preg_match($pattern, $
|
|
|
|
|
31 |
require_once(realpath(dirname(__FILE__).'/getid3/getid3.php'));
|
|
|
32 |
// Initialize getID3 engine
|
33 |
$getID3 = new getID3;
|
34 |
|
35 |
-
$ThisFileInfo = $getID3->analyze(realpath($_SERVER['DOCUMENT_ROOT'] .$
|
36 |
-
if (isset($ThisFileInfo['error'])) $file_error = "Could not read video details, please fill the width and height manually.";
|
37 |
//getid3_lib::CopyTagsToComments($ThisFileInfo);
|
38 |
-
$file_time = $ThisFileInfo['playtime_string']; // playtime in minutes:seconds, formatted string
|
39 |
-
$file_width = $ThisFileInfo['video']['resolution_x'];
|
40 |
-
$file_height = $ThisFileInfo['video']['resolution_y'];
|
41 |
-
$file_size = $ThisFileInfo['filesize'];
|
42 |
-
$file_size = round($file_size/(1024*1024),2);
|
43 |
}
|
44 |
|
45 |
|
46 |
?>
|
47 |
-
|
48 |
function fillVideoInputs(){
|
49 |
var vid_list = document.getElementById("files_video");
|
50 |
var item = vid_list.options[vid_list.selectedIndex].title;
|
@@ -60,143 +94,208 @@ function fillSplashInputs(){
|
|
60 |
document.getElementById("hidden_splash").value = item;
|
61 |
document.cookie = "selected_image="+item+";";
|
62 |
}
|
63 |
-
</script
|
64 |
<form>
|
65 |
<table class="slidetoggle describe">
|
66 |
<tbody>
|
67 |
<tr>
|
68 |
<th valign="top" scope="row" class="label"><span class="alignright">Video</span></th>
|
69 |
-
<td colspan="2" class="field" style="width: 75%"><input type="text" class="text" id="src" name="src" style="width: 100%" value="<?php echo $
|
70 |
</tr>
|
71 |
<?php
|
72 |
if ($allow_uploads=="true") {
|
73 |
echo '<tr>
|
74 |
<th></th>
|
75 |
<td colspan="2" style="width: 100%" >
|
76 |
-
Or <a href="media-upload.php?post_id='.$post_id.'&type=video&TB_iframe=true&width=640&height=
|
77 |
</td>
|
78 |
</tr>';
|
79 |
}; //allow uplads video ?>
|
80 |
|
81 |
-
<?php if (!empty($
|
82 |
<tr><th></th>
|
83 |
<th valign="top" scope="row" class="label"><span class="alignleft">File info</span></th><td>
|
84 |
-
<?php if (!empty($file_width)){?>
|
85 |
-
Video Duration: <?php echo $file_time ?><br />
|
86 |
-
File size: <?php echo $file_size ?>MB
|
87 |
-
<?php } else echo $file_error; ?>
|
88 |
</td>
|
89 |
</tr>
|
90 |
<?php }; //video has been selected ?>
|
91 |
-
<tr
|
92 |
-
<th valign="top" scope="row" class="label" ><span class="
|
93 |
-
<td class="field"><input type="text" id="width" name="width" style="width: 100%" value="<?php echo $file_width ?>"/></td>
|
94 |
</tr>
|
95 |
-
<tr
|
96 |
-
<th valign="top" scope="row" class="label" style="width: 10%"><span class="
|
97 |
-
<td class="field"><input type="text" id="height" name="height" style="width: 100%" value="<?php echo $file_height ?>"/></td>
|
98 |
</tr>
|
99 |
<tr>
|
100 |
<th valign="top" scope="row" class="label"><span class="alignright">Splash Image</span></th>
|
101 |
-
<td class="field" colspan="2"><input type="text" id="splash" name="splash" style="width: 100%" value="<?php echo $
|
102 |
</tr>
|
103 |
<?php if ($allow_uploads=='true') {
|
104 |
echo '<tr>
|
105 |
<th></th>
|
106 |
<td colspan="2" class="field" style="width: 100%" >
|
107 |
-
Or <a href="media-upload.php?type=image&post_id='.$post_id .'&TB_iframe=true&width=640&height=
|
108 |
</td>
|
109 |
</tr>';
|
110 |
}; //allow uplads splash image ?>
|
111 |
-
<?php if (!empty($
|
112 |
if (($post_thumbnail=='true') && current_theme_supports( 'post-thumbnails') && isset($selected_attachment['id']))
|
113 |
update_post_meta( $post_id, '_thumbnail_id', $selected_attachment['id'] );?>
|
|
|
|
|
114 |
<tr>
|
115 |
-
<
|
116 |
<td colspan="2"><textarea type="text" id="popup" name="popup" style="width: 100%"></textarea></td>
|
117 |
</tr>
|
118 |
<tr>
|
119 |
-
<
|
120 |
-
<td
|
121 |
</tr>
|
|
|
122 |
<tr>
|
123 |
-
<
|
124 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
</th>
|
126 |
</tr>
|
127 |
</tbody>
|
128 |
</table>
|
129 |
</form>
|
130 |
-
|
131 |
<script type="text/javascript">
|
132 |
-
|
133 |
-
|
|
|
|
|
|
|
134 |
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
144 |
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
var shortcode = content.match( re );
|
149 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
150 |
|
151 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
|
|
173 |
|
174 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
175 |
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
document.getElementById("splash").value = ssplash[1];
|
186 |
-
if( spopup != null && spopup[1] != null ) {
|
187 |
-
spopup = spopup[1].replace(/'/g,'\'').replace(/"/g,'"').replace(/</g,'<').replace(/>/g,'>');
|
188 |
-
spopup = spopup.replace(/&/g,'&');
|
189 |
-
document.getElementById("popup").value = spopup;
|
190 |
-
}
|
191 |
-
|
192 |
-
document.getElementById("insert-button").value = "Update";
|
193 |
}
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
//alert( window.parent.document.getElementById( 'content_ifr' ).contentWindow.document.body.innerHTML );
|
198 |
-
//document.getElementById("src").focus();
|
199 |
}
|
|
|
200 |
|
201 |
|
202 |
function clickOK() {
|
@@ -224,11 +323,17 @@ function clickOK() {
|
|
224 |
if( document.getElementById("height").value != '' )
|
225 |
shortcode += ' height=' + document.getElementById("height").value;
|
226 |
|
227 |
-
|
228 |
shortcode += ' autoplay=true';
|
|
|
|
|
|
|
229 |
|
230 |
if( document.getElementById("splash").value != '' )
|
231 |
shortcode += ' splash=\'' + document.getElementById("splash").value + '\'';
|
|
|
|
|
|
|
232 |
|
233 |
if( document.getElementById("popup").value != '' ) {
|
234 |
var popup = document.getElementById("popup").value;
|
@@ -240,6 +345,16 @@ function clickOK() {
|
|
240 |
shortcode += ' popup=\'' + popup +'\'';
|
241 |
}
|
242 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
243 |
shortcode += ']';
|
244 |
document.cookie = "selected_video='';expires=Thu, 01-Jan-1970 00:00:01 GMT;";
|
245 |
document.cookie = "selected_image='';expires=Thu, 01-Jan-1970 00:00:01 GMT;";
|
@@ -257,4 +372,4 @@ function clickOK() {
|
|
257 |
}
|
258 |
}
|
259 |
|
260 |
-
</script>
|
1 |
+
<?php
|
2 |
if (isset($_COOKIE["selected_video"]))
|
3 |
+
$uploaded['normal'] = $_COOKIE["selected_video"];
|
4 |
+
if (isset($_COOKIE["selected_video_low"]))
|
5 |
+
$uploaded['low'] = $_COOKIE["selected_video_low"];
|
6 |
+
if (isset($_COOKIE["selected_video_mobile"]))
|
7 |
+
$uploaded['mobile'] = $_COOKIE["selected_video_mobile"];
|
8 |
+
if (isset($_COOKIE["selected_video_webm"]))
|
9 |
+
$uploaded['webm'] = $_COOKIE["selected_video_webm"];
|
10 |
+
if (isset($_COOKIE["selected_video_3gp"]))
|
11 |
+
$uploaded['3gp'] = $_COOKIE["selected_video_3gp"];
|
12 |
if (isset($_COOKIE["selected_image"]))
|
13 |
+
$uploaded['splash'] = $_COOKIE["selected_image"];
|
14 |
+
|
|
|
15 |
$post_id = intval($_REQUEST['post_id']);
|
16 |
//load configuration file:
|
17 |
$conf = get_option( 'fvwpflowplayer' );
|
22 |
if (isset($conf["postthumbnail"]))
|
23 |
$post_thumbnail = $conf["postthumbnail"];
|
24 |
|
25 |
+
$uploadtype = '';
|
26 |
+
if (isset($selected_attachment['url'])) {
|
27 |
+
switch ($selected_attachment['type']){
|
28 |
+
case 'splash': $uploaded['splash'] = $selected_attachment['url']; //$uploaded_image = $selected_attachment['url'];
|
29 |
+
$uploadtype = 'splash';
|
30 |
+
break;
|
31 |
+
case 'normal': $uploaded['normal'] = $selected_attachment['url']; //$uploaded_video = $selected_attachment['url'];
|
32 |
+
$uploadtype = 'normal';
|
33 |
+
break;
|
34 |
+
case 'low': $uploaded['low'] = $selected_attachment['url']; //$uploaded_video = $selected_attachment['url'];
|
35 |
+
$uploadtype = 'low';
|
36 |
+
break;
|
37 |
+
case 'mobile': $uploaded['mobile'] = $selected_attachment['url']; //$uploaded_video_mobile = $selected_attachment['url'];
|
38 |
+
$uploadtype = 'mobile';
|
39 |
+
break;
|
40 |
+
case 'webm': $uploaded['webm'] = $selected_attachment['url']; //$uploaded_video_mobile = $selected_attachment['url'];
|
41 |
+
$uploadtype = 'webm';
|
42 |
+
break;
|
43 |
+
case '3gp': $uploaded['3gp'] = $selected_attachment['url']; //$uploaded_video_mobile = $selected_attachment['url'];
|
44 |
+
$uploadtype = '3gp';
|
45 |
+
break;
|
46 |
+
}
|
47 |
+
}
|
48 |
+
|
49 |
+
/* $video_types = array('flv','mov','avi','mpeg','mpg','asf','qt','wmv','mp4','mp3');
|
50 |
$splash_types = array('jpg','jpeg','gif','png', 'bmp','jpe');
|
51 |
if (isset($selected_attachment['url'])) {
|
52 |
$path_parts = pathinfo($selected_attachment['url']);
|
54 |
$uploaded_video = $selected_attachment['url'];
|
55 |
if (in_array($path_parts['extension'], $splash_types))
|
56 |
$uploaded_image = $selected_attachment['url'];
|
57 |
+
}*/
|
58 |
+
if ( ( $uploadtype == 'normal' ) || ( $uploadtype == 'mobile' ) || ( $uploadtype == 'webm' ) || ( $uploadtype == '3gp' )){
|
59 |
$serv = $_SERVER['SERVER_NAME'];
|
60 |
$pattern = '/'.$serv.'(.*)/';
|
61 |
+
preg_match($pattern, $uploaded[$uploadtype], $matches);
|
62 |
+
if($matches[1]) $strUpVideo = $matches[1];
|
63 |
+
else $strUpVideo = $uploaded[$uploadtype];
|
64 |
require_once(realpath(dirname(__FILE__).'/getid3/getid3.php'));
|
65 |
+
|
66 |
// Initialize getID3 engine
|
67 |
$getID3 = new getID3;
|
68 |
|
69 |
+
$ThisFileInfo = $getID3->analyze(realpath($_SERVER['DOCUMENT_ROOT'] .$strUpVideo));
|
70 |
+
if (isset($ThisFileInfo['error'])) $file_error[$uploadtype] = "Could not read video details, please fill the width and height manually.";
|
71 |
//getid3_lib::CopyTagsToComments($ThisFileInfo);
|
72 |
+
$file_time[$uploadtype] = $ThisFileInfo['playtime_string']; // playtime in minutes:seconds, formatted string
|
73 |
+
$file_width[$uploadtype] = $ThisFileInfo['video']['resolution_x'];
|
74 |
+
$file_height[$uploadtype] = $ThisFileInfo['video']['resolution_y'];
|
75 |
+
$file_size[$uploadtype] = $ThisFileInfo['filesize'];
|
76 |
+
$file_size[$uploadtype] = round($file_size[$uploadtype]/(1024*1024),2);
|
77 |
}
|
78 |
|
79 |
|
80 |
?>
|
81 |
+
<!--script type="text/javascript">
|
82 |
function fillVideoInputs(){
|
83 |
var vid_list = document.getElementById("files_video");
|
84 |
var item = vid_list.options[vid_list.selectedIndex].title;
|
94 |
document.getElementById("hidden_splash").value = item;
|
95 |
document.cookie = "selected_image="+item+";";
|
96 |
}
|
97 |
+
</script-->
|
98 |
<form>
|
99 |
<table class="slidetoggle describe">
|
100 |
<tbody>
|
101 |
<tr>
|
102 |
<th valign="top" scope="row" class="label"><span class="alignright">Video</span></th>
|
103 |
+
<td colspan="2" class="field" style="width: 75%"><input type="text" class="text" id="src" name="src" style="width: 100%" value="<?php echo $uploaded['normal'] ?>"/></td>
|
104 |
</tr>
|
105 |
<?php
|
106 |
if ($allow_uploads=="true") {
|
107 |
echo '<tr>
|
108 |
<th></th>
|
109 |
<td colspan="2" style="width: 100%" >
|
110 |
+
Or <a href="media-upload.php?post_id='.$post_id.'&type=video&TB_iframe=true&width=640&height=723fvplayernormal">open media library</a> to upload new video.
|
111 |
</td>
|
112 |
</tr>';
|
113 |
}; //allow uplads video ?>
|
114 |
|
115 |
+
<?php if (!empty($uploaded['normal'])){?>
|
116 |
<tr><th></th>
|
117 |
<th valign="top" scope="row" class="label"><span class="alignleft">File info</span></th><td>
|
118 |
+
<?php if (!empty($file_width['normal'])){?>
|
119 |
+
Video Duration: <?php echo $file_time['normal'] ?><br />
|
120 |
+
File size: <?php echo $file_size['normal'] ?>MB
|
121 |
+
<?php } else echo $file_error['normal']; ?>
|
122 |
</td>
|
123 |
</tr>
|
124 |
<?php }; //video has been selected ?>
|
125 |
+
<tr><!--th></th-->
|
126 |
+
<th valign="top" scope="row" class="label" ><span class="alignright">Width <small>(px)</small></span><br class='clear' /></th>
|
127 |
+
<td colspan="2" class="field"><input type="text" id="width" name="width" style="width: 100%" value="<?php echo $file_width['normal'] ?>"/></td>
|
128 |
</tr>
|
129 |
+
<tr><!--th></th-->
|
130 |
+
<th valign="top" scope="row" class="label" style="width: 10%"><span class="alignright">Height <small>(px)</small></span></th>
|
131 |
+
<td colspan="2" class="field"><input type="text" id="height" name="height" style="width: 100%" value="<?php echo $file_height['normal'] ?>"/></td>
|
132 |
</tr>
|
133 |
<tr>
|
134 |
<th valign="top" scope="row" class="label"><span class="alignright">Splash Image</span></th>
|
135 |
+
<td class="field" colspan="2"><input type="text" id="splash" name="splash" style="width: 100%" value="<?php echo $uploaded['splash'] ?>"/></td>
|
136 |
</tr>
|
137 |
<?php if ($allow_uploads=='true') {
|
138 |
echo '<tr>
|
139 |
<th></th>
|
140 |
<td colspan="2" class="field" style="width: 100%" >
|
141 |
+
Or <a href="media-upload.php?type=image&post_id='.$post_id .'&TB_iframe=true&width=640&height=723fvplayersplash">open media library</a> to upload new splash image.
|
142 |
</td>
|
143 |
</tr>';
|
144 |
}; //allow uplads splash image ?>
|
145 |
+
<?php if (!empty($uploaded['splash']))
|
146 |
if (($post_thumbnail=='true') && current_theme_supports( 'post-thumbnails') && isset($selected_attachment['id']))
|
147 |
update_post_meta( $post_id, '_thumbnail_id', $selected_attachment['id'] );?>
|
148 |
+
<tr><th colspan=3 style="text-align:left; padding-left:50px"> </th></tr>
|
149 |
+
<tr><th colspan=3 style="text-align:left; padding-left:30px">Additional features:</th></tr>
|
150 |
<tr>
|
151 |
+
<td valign="top" scope="row" class="label"><span class="alignright">HTML Popup</span></td>
|
152 |
<td colspan="2"><textarea type="text" id="popup" name="popup" style="width: 100%"></textarea></td>
|
153 |
</tr>
|
154 |
<tr>
|
155 |
+
<td valign="top" scope="row" class="label"><span class="alignright">Redirect to</span></td>
|
156 |
+
<td class="field" colspan="2"><input type="text" id="redirect" name="redirect" style="width: 100%" value=""/></td>
|
157 |
</tr>
|
158 |
+
|
159 |
<tr>
|
160 |
+
<td valign="top" scope="row" class="label"><span class="alignright">Autoplay</span></td>
|
161 |
+
<td colspan="2" class="field">
|
162 |
+
<select id="autoplay" name="autoplay">
|
163 |
+
<option>Default </option><option>On</option><option>Off</option>
|
164 |
+
</select><!--input type="checkbox" id="autoplay" name="autoplay" /-->
|
165 |
+
</td>
|
166 |
+
</tr>
|
167 |
+
<tr>
|
168 |
+
<td valign="top" scope="row" class="label"><span class="alignright">Controlbar</span></td>
|
169 |
+
<td colspan="2" class="field"><!--input type="checkbox" id="controlbar" name="controlbar" /-->
|
170 |
+
<select id="controlbar" name="controlbar">
|
171 |
+
<option>Default</option><option>Always show</option><option>Always hide</option>
|
172 |
+
</select>
|
173 |
+
</td>
|
174 |
+
</tr>
|
175 |
+
<tr>
|
176 |
+
<!--th valign="top" scope="row" class="label"><span class="alignright"></span></th-->
|
177 |
+
<td colspan="3" class="field" style="padding-left:40px">
|
178 |
+
Show splash image at the end <input type="checkbox" id="splashend" name="splashend" />
|
179 |
+
<span style="font-size:70%; width:300px;">(The splash image has to have the same dimensions as the video)</span>
|
180 |
+
</td>
|
181 |
+
</tr>
|
182 |
+
|
183 |
+
|
184 |
+
<tr>
|
185 |
+
<th valign="top" scope="row" class="label" style="test-align:right">
|
186 |
+
<input type="button" value="Insert" name="insert" id="insert-button" class="button-primary" onclick="clickOK();" style="float:right"/>
|
187 |
</th>
|
188 |
</tr>
|
189 |
</tbody>
|
190 |
</table>
|
191 |
</form>
|
|
|
192 |
<script type="text/javascript">
|
193 |
+
var shortcode;
|
194 |
+
if(window.parent.tinyMCE.activeEditor){
|
195 |
+
var re = /\[flowplayer[^\[]*?<span>FCKFVWPFlowplayerPlaceholder<\/span>[^\[]*?\]/mi;
|
196 |
+
var re2 = /<span>FCKFVWPFlowplayerPlaceholder<\/span>/gi;
|
197 |
+
var hTinyMCE = window.parent.tinyMCE.activeEditor;
|
198 |
|
199 |
+
if(hTinyMCE){
|
200 |
+
hTinyMCE.selection.setContent('<span>FCKFVWPFlowplayerPlaceholder</span>');
|
201 |
+
content_original = hTinyMCE.getContent();
|
202 |
+
content = content_original.replace(/\n/g,'\uffff');
|
203 |
+
shortcode = content.match( re );
|
204 |
+
hTinyMCE.setContent( hTinyMCE.getContent().replace( re2,'' ) );
|
205 |
+
}
|
206 |
+
}
|
207 |
+
|
208 |
+
if(window.parent.FCKeditorAPI){
|
209 |
+
var oEditor = window.parent.FCKeditorAPI.GetInstance('content') ;
|
210 |
+
if (typeof oEditor != 'undefined')
|
211 |
+
{
|
212 |
+
oEditor.InsertHtml('<span>FCKFVWPFlowplayerPlaceholder</span>');
|
213 |
+
}
|
214 |
+
var re = /\[flowplayer[^\[]*?<span>FCKFVWPFlowplayerPlaceholder<\/span>[^\[]*?\]/mi;
|
215 |
+
var re2 = /<span>FCKFVWPFlowplayerPlaceholder<\/span>/gi;
|
216 |
+
if( (oEditor == undefined) || window.parent.tinyMCE.activeEditor.isHidden() ) {
|
217 |
+
}
|
218 |
+
else {
|
219 |
+
content_original = oEditor.GetHTML();
|
220 |
+
content = content_original.replace(/\n/g,'\uffff');
|
221 |
+
shortcode = content.match( re );
|
222 |
+
var orig = oEditor.GetHTML().replace( re2,'' );
|
223 |
+
oEditor.SetData( orig );
|
224 |
+
}
|
225 |
+
}
|
226 |
+
if( shortcode != null ) {
|
227 |
+
shortcode = shortcode.join('');
|
228 |
+
shortcode = shortcode.replace( re2,'' );
|
229 |
+
shortcode = shortcode.replace( /\\'/g,''' );
|
230 |
|
231 |
+
srcurl = shortcode.match( /src='([^']*)'/ );
|
232 |
+
if( srcurl == null ) srcurl = shortcode.match( /src=([^,\]\s]*)/ );
|
|
|
|
|
233 |
|
234 |
+
ssplash = shortcode.match( /splash='([^']*)'/ );
|
235 |
+
if( ssplash == null ) ssplash = shortcode.match( /splash=\"([^\"]*)\"/ );
|
236 |
+
if( ssplash == null ) ssplash = shortcode.match( /splash=([^,\]\s]*)/ );
|
237 |
+
|
238 |
+
iheight = shortcode.match( /height=(\d*)/ );
|
239 |
+
iwidth = shortcode.match( /width=(\d*)/ );
|
240 |
+
if( iheight == null ) iheight = shortcode.match( /height='(\d*)'/ );
|
241 |
+
if( iwidth == null ) iwidth = shortcode.match( /width='(\d*)'/ );
|
242 |
|
243 |
+
spopup = shortcode.match( /popup='([^']*)'/ );
|
244 |
+
if( spopup == null ) spopup = shortcode.match( /popup=\"([^\"]*)\"/ );
|
245 |
+
sredirect = shortcode.match( /redirect='([^']*)'/ );
|
246 |
+
if(sredirect == null ) sredirect = shortcode.match( /redirect=\"([^\"]*)\"/ );
|
247 |
+
|
248 |
+
sautoplay = shortcode.match( /autoplay='([^\s\]]+)'/ );
|
249 |
+
if(sautoplay == null )sautoplay = shortcode.match( /autoplay=([^\s]+)/ );
|
250 |
|
251 |
+
controlbar = shortcode.match( /controlbar='([^\s\]]+)'/ );
|
252 |
+
if( controlbar == null ) controlbar = shortcode.match( /controlbar=([^\s]+)/ );
|
253 |
+
|
254 |
+
ssplashend = shortcode.match( /splashend='([^\s\]]+)'/ );
|
255 |
+
if(ssplashend[1] == null || !ssplashend[1] )ssplashend = shortcode.match( /splashend=([^\s]+)/ );
|
256 |
+
//alert( srcurl[1] + '\n' + iheight[1] + '\n' + iwidth[1] + '\n' + splash[1] + '\n' + popup[1] );
|
257 |
+
if( srcurl != null && srcurl[1] != null )
|
258 |
+
document.getElementById("src").value = srcurl[1];
|
259 |
+
if( iheight != null && iheight[1] != null )
|
260 |
+
document.getElementById("height").value = iheight[1];
|
261 |
+
if( iwidth != null && iwidth[1] != null )
|
262 |
+
document.getElementById("width").value = iwidth[1];
|
263 |
+
if( ssplash != null && ssplash[1] != null )
|
264 |
+
document.getElementById("splash").value = ssplash[1];
|
265 |
+
if( spopup != null && spopup[1] != null ) {
|
266 |
+
spopup = spopup[1].replace(/'/g,'\'').replace(/"/g,'"').replace(/</g,'<').replace(/>/g,'>');
|
267 |
+
spopup = spopup.replace(/&/g,'&');
|
268 |
+
document.getElementById("popup").value = spopup;
|
269 |
+
}
|
270 |
+
if( sredirect != null && sredirect[1] != null )
|
271 |
+
document.getElementById("redirect").value = sredirect[1];
|
272 |
|
273 |
+
if( (ssplashend != null) && (ssplashend[1] != null) ){
|
274 |
+
document.getElementById("splashend").checked = true;//sautoplay[1];
|
275 |
+
}
|
276 |
+
if( controlbar != null && controlbar[1] != null ){
|
277 |
+
if (controlbar[1] == 'show')
|
278 |
+
document.getElementById("controlbar").selectedIndex = 1;//sautoplay[1];
|
279 |
+
else if (controlbar[1] == 'hide')
|
280 |
+
document.getElementById("controlbar").selectedIndex = 2;//sautoplay[1];
|
281 |
+
else document.getElementById("controlbar").selectedIndex = 0;
|
282 |
+
}
|
283 |
|
284 |
+
/*if( sautoplay != null && sautoplay[1] != null )
|
285 |
+
document.getElementById("autoplay").checked = true;//sautoplay[1];
|
286 |
+
*/
|
287 |
+
if( (sautoplay != null) && (sautoplay[1] != null) ){
|
288 |
+
if (sautoplay[1] == 'true')
|
289 |
+
document.getElementById("autoplay").selectedIndex = 1;//sautoplay[1];
|
290 |
+
else if (sautoplay[1] == 'false')
|
291 |
+
document.getElementById("autoplay").selectedIndex = 2;//sautoplay[1];
|
292 |
+
else document.getElementById("autoplay").selectedIndex = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
293 |
}
|
294 |
+
|
295 |
+
|
296 |
+
document.getElementById("insert-button").value = "Update";
|
|
|
|
|
297 |
}
|
298 |
+
// document.getElementById("src").focus();
|
299 |
|
300 |
|
301 |
function clickOK() {
|
323 |
if( document.getElementById("height").value != '' )
|
324 |
shortcode += ' height=' + document.getElementById("height").value;
|
325 |
|
326 |
+
if( document.getElementById("autoplay").checked )
|
327 |
shortcode += ' autoplay=true';
|
328 |
+
|
329 |
+
if( document.getElementById("splashend").checked )
|
330 |
+
shortcode += ' splashend=show';
|
331 |
|
332 |
if( document.getElementById("splash").value != '' )
|
333 |
shortcode += ' splash=\'' + document.getElementById("splash").value + '\'';
|
334 |
+
|
335 |
+
if( document.getElementById("redirect").value != '' )
|
336 |
+
shortcode += ' redirect=\'' + document.getElementById("redirect").value + '\'';
|
337 |
|
338 |
if( document.getElementById("popup").value != '' ) {
|
339 |
var popup = document.getElementById("popup").value;
|
345 |
shortcode += ' popup=\'' + popup +'\'';
|
346 |
}
|
347 |
|
348 |
+
if( document.getElementById("controlbar").selectedIndex == 1 )
|
349 |
+
shortcode += ' controlbar=show';
|
350 |
+
if( document.getElementById("controlbar").selectedIndex == 2 )
|
351 |
+
shortcode += ' controlbar=hide';
|
352 |
+
|
353 |
+
if( document.getElementById("autoplay").selectedIndex == 1 )
|
354 |
+
shortcode += ' autoplay=true';
|
355 |
+
if( document.getElementById("autoplay").selectedIndex == 2 )
|
356 |
+
shortcode += ' autoplay=false';
|
357 |
+
|
358 |
shortcode += ']';
|
359 |
document.cookie = "selected_video='';expires=Thu, 01-Jan-1970 00:00:01 GMT;";
|
360 |
document.cookie = "selected_image='';expires=Thu, 01-Jan-1970 00:00:01 GMT;";
|
372 |
}
|
373 |
}
|
374 |
|
375 |
+
</script>
|