FV Flowplayer Video Player - Version 1.2.17

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 Icon 128x128 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 CHANGED
@@ -1,16 +1,13 @@
1
<?php
2
-
3
/**
4
* Needed includes
5
*/
6
- include dirname( __FILE__ ) . '/../models/flowplayer.php';
7
- include dirname( __FILE__ ) . '/../models/flowplayer-backend.php';
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
- add_filter('media_send_to_editor','fp_media_send_to_editor', 10, 3);
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('/width=([0-9]+)/',$_POST['_wp_http_referer'],$matchesw);
41
- preg_match('/height=([0-9]+)/',$_POST['_wp_http_referer'],$matchesh);
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
- if (in_array($path_parts['extension'], $splash_types)){
53
- setcookie("selected_image",$attachment_url);
54
- $selected_attachment = array('url'=>$attachment_url,'id'=>$attachment_id);
55
- }
56
- else{
57
- // if (in_array($path_parts['extension'], $video_types)){
58
- setcookie("selected_video",$attachment_url);
59
- $selected_attachment = array('url'=>$attachment_url);
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
- include dirname( __FILE__ ) . '/../view/wizard.php';
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
- /*global $fmp_jw_url, $fmp_jw_files_dir;
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
- include dirname( __FILE__ ) . '/../models/flowplayer.php';
7
- include dirname( __FILE__ ) . '/../models/flowplayer-frontend.php';
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("\'",'&#039;',$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
- echo "\n<script defer=\"defer\" type=\"text/javascript\">\n<!--\n\n";
155
foreach ($GLOBALS['scripts'] as $scr) {
156
echo $scr;
157
}
158
- echo "\n\n//-->\n</script>\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("\'",'&#039;',$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
- //require_once dirname( __FILE__ ) . '/../models/flowplayer-frontend.php';
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*?#x2F;', '$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*?#x2F;', '$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*?#x2F;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
- ), $atts ) );
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*?#x2F;', '$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*?#x2F;', '$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*?#x2F;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
- font-family: Arial, serif;
106
- font-size:11pt;
107
- z-index: 999;
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.0.6
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
- include( dirname( __FILE__ ) . '/controller/shortcodes.php');
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 @@
</