-
Notifications
You must be signed in to change notification settings - Fork 6
/
flowplayer.php
156 lines (115 loc) · 5.82 KB
/
flowplayer.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<?php
/*
Plugin Name: FV Player
Plugin URI: http://foliovision.com/wordpress/plugins/fv-wordpress-flowplayer
Description: Formerly FV WordPress Flowplayer. Supports MP4, HLS, MPEG-DASH, WebM and OGV. Advanced features such as overlay ads or popups. Uses Flowplayer 7.2.12.
Version: 7.5.48.7212
Author URI: http://foliovision.com/
License: GPL-3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.txt
*/
/* FV Player - HTML5 video player with Flash fallback
Copyright (C) 2024 Foliovision
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
if ( ! defined( 'ABSPATH' ) ) {
return;
}
global $fv_wp_flowplayer_ver;
$fv_wp_flowplayer_ver = '7.5.48.7212';
$fv_wp_flowplayer_core_ver = '7.2.12.3';
include_once( dirname( __FILE__ ) . '/includes/extra-functions.php' );
if( file_exists( dirname( __FILE__ ) . '/includes/module.php' ) ) {
include_once( dirname( __FILE__ ) . '/includes/module.php' );
}
include_once( dirname( __FILE__ ) . '/models/checker.php' );
global $FV_Player_Checker;
$FV_Player_Checker = new FV_Player_Checker();
include_once(dirname( __FILE__ ) . '/models/flowplayer.php');
include_once(dirname( __FILE__ ) . '/models/flowplayer-frontend.php');
include_once(dirname( __FILE__ ) . '/models/lightbox.php');
include_once(dirname( __FILE__ ) . '/models/facebook-share.php');
include_once(dirname( __FILE__ ) . '/models/custom-videos.php');
include_once(dirname( __FILE__ ) . '/models/seo.php');
include_once(dirname( __FILE__ ) . '/models/subtitles.php');
include_once(dirname( __FILE__ ) . '/models/users-ultra-pro.php');
include_once(dirname( __FILE__ ) . '/models/widget.php');
include_once(dirname( __FILE__ ) . '/models/email-subscription.php');
include_once(dirname( __FILE__ ) . '/models/video-intelligence.php');
include_once(dirname( __FILE__ ) . '/models/player-position-save.php');
include_once(dirname( __FILE__ ) . '/models/db-player.php');
include_once(dirname( __FILE__ ) . '/models/db-video.php');
include_once(dirname( __FILE__ ) . '/models/db-video-meta.php');
include_once(dirname( __FILE__ ) . '/models/db-player-meta.php');
include_once(dirname( __FILE__ ) . '/models/db.php');
global $FV_Player_Db;
$FV_Player_Db = new FV_Player_Db();
include_once(dirname( __FILE__ ).'/models/cdn.class.php');
include_once(dirname( __FILE__ ).'/models/digitalocean-spaces.class.php');
include_once(dirname( __FILE__ ).'/models/linode-object-storage.class.php');
include_once(dirname( __FILE__ ).'/models/learndash.php');
include_once(dirname( __FILE__ ) . '/models/list-table.php');
include_once(dirname( __FILE__ ) . '/models/xml-video-sitemap.php');
global $fv_fp;
$fv_fp = new flowplayer_frontend();
if( is_admin() ) {
include_once( dirname( __FILE__ ) . '/controller/backend.php' );
include_once( dirname( __FILE__ ) . '/controller/editor.php' );
include_once( dirname( __FILE__ ) . '/controller/settings.php' );
if( version_compare(phpversion(),'5.5.0') != -1 ) {
include_once(dirname( __FILE__ ) . '/models/media-browser.php');
}
if( version_compare(phpversion(),'7.4') != -1 ) {
include_once(dirname( __FILE__ ) . '/models/media-browser-s3.php');
new FV_Player_Media_Browser_S3( 'wp_ajax_load_s3_assets' );
}
include_once(dirname( __FILE__ ) . '/models/system-info.php');
include_once(dirname( __FILE__ ). '/models/conversion/conversion-base.class.php');
include_once(dirname( __FILE__ ). '/models/conversion/shortcode2DB.class.php');
include_once(dirname( __FILE__ ) . '/models/conversion.php');
include_once( dirname( __FILE__ ) .'/models/splash-download.php');
register_deactivation_hook( __FILE__, 'flowplayer_deactivate' );
}
include_once( dirname( __FILE__ ) . '/controller/frontend.php' );
include_once( dirname( __FILE__ ) . '/controller/shortcodes.php');
include_once( dirname( __FILE__ ) . '/models/avada-builder-bridge.php' );
include_once( dirname( __FILE__ ) . '/models/gutenberg.php' );
include_once(dirname( __FILE__ ). '/models/migration-wizard.class.php');
include_once(dirname( __FILE__ ). '/models/migration-wizard.php');
include_once(dirname( __FILE__ ) . '/models/stats.php');
include_once(dirname( __FILE__ ) . '/models/stats-export.php');
include_once(dirname( __FILE__ ) . '/models/youtube.php');
add_action('plugins_loaded', 'fv_player_bunny_stream_include' );
if( !function_exists( 'fv_player_bunny_stream_include' ) && version_compare(PHP_VERSION, '5.2.17') >= 0 ) {
function fv_player_bunny_stream_include() {
do_action( 'fv_player_load_video_encoder_libs' );
if ( class_exists( 'FV_Player_Video_Encoder' ) ) {
require_once( dirname( __FILE__ ).'/models/class.fv-player-bunny_stream.php' );
}
}
}
add_filter( 'tables_to_repair', 'fv_player_tables_to_repair' );
// Required for integration tests
if ( ! function_exists( 'fv_player_tables_to_repair' ) ) {
function fv_player_tables_to_repair( $tables ) {
global $wpdb;
$tables[] = FV_Player_Db_Player::get_db_table_name();
$tables[] = FV_Player_Db_Player_Meta::get_db_table_name();
$tables[] = FV_Player_Db_Video::get_db_table_name();
$tables[] = FV_Player_Db_Video_Meta::get_db_table_name();
$tables[] = FV_Player_Stats::get_table_name();
$tables[] = $wpdb->prefix . 'fv_player_emails';
$tables[] = $wpdb->prefix . 'fv_player_encoding_jobs';
$tables[] = $wpdb->prefix . 'fv_fp_hls_access_tokens';
return $tables;
}
}