This repository has been archived by the owner on Aug 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
embed_config.dist.php
187 lines (143 loc) · 5.91 KB
/
embed_config.dist.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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<?php defined('BASEPATH') or exit('No direct script access allowed');
/**
|--------------------------------------------------------------------------
| Open Media Player - GENERIC main configuration file.
|--------------------------------------------------------------------------
*/
putenv('OUENV=generic');
/*
|--------------------------------------------------------------------------
| Debugging flag (integer, one of OUP_DEBUG_NONE, OUP_DEBUG_MIN, OUP_DEBUG_MAX).
*/
// See also: 'ENVIRONMENT' defined in ../../index.php
$config[ 'debug' ] = OUP_DEBUG_MAX;
/*
|--------------------------------------------------------------------------
| Web proxy.
*/
$config[ 'http_proxy' ] = null;
$config[ 'http_no_proxy' ] = null;
$config[ 'http_cookie' ] = array();
/*
|--------------------------------------------------------------------------
| Data directory (required/all).
*/
$config['data_dir'] = __DIR__ .'/../../_data/'; /*** EDIT ME ***/
#$config['data_dir'] = '/var/www/_ouplayer_data/';
#$config['data_dir'] = 'C:/Users/[NAME]/workspace/_ouplayer_data/';
/*
|--------------------------------------------------------------------------
| Podcast Media Player data-feed (or database) configuration (required).
*/
// If TRUE (default), use the feed model, otherwise, use the database model (requires a config/database.php file).
$config['podcast_data_use_feed'] = true;
// Required/Podcast. Required for feed access model - the default. /*** EDIT ME ***/
$config['podcast_feed_url_pattern'] =
"http://podcast.open.ac.uk/feeds/__COLLECTION_ID__/player.xml";
// SSL/ HTTPS regular expression for `media_url()` helper function - OU Media Player.
$config['https_media_url_regex'] =
'@https?:\/\/((sub_domain_A|sub_domain_B)\.example\.org)@';
/*
|--------------------------------------------------------------------------
| Podcast Player other configuration.
*/
// Placeholder image for private/intranet-only podcasts etc.
$config['player_restricted_poster_url'] = '/themes/ouplayer_base/pix/locked-video-background-v1.png';
// Optional/Podcast. One of NULL, 'iframe' or 'jquery-oembed' (default: NULL)
$config['player_embed_code'] = NULL;
/*
|--------------------------------------------------------------------------
| General Media Player configuration
*/
// Either NULL, 'ender' (maybe for OUVLE?) or 'jquery' (maybe for Podcast?)
// (NULL was preferred - it lets Mejs_Default_Theme::prepare_jslib() decide.)
$config['jslib'] ='jquery';
// 200 ~ 500 milliseconds.
$config['js_timeout'] = 500;
// Volume keyboard shortcuts - iet-it-bugs:1477 / LTSredmine:6994.
$config['player_js_config'] = array(
'quieterKey' => '[',
'louderKey' => ']',
// Keyboard accessibility: disable (most) shortcuts?!
//: engines/mediaelement/js/mep-player.js#L63
'enableKeyboard' => true,
// array of keyboard actions such as play pause
'keyActions' => array(
array(
'keys' => array(
32, // SPACE
179 // GOOGLE play/pause button
),
'action' => 'function (player, media) {'."\n"
.' if (media.paused || media.ended) {' ."\n"
.' media.play();' ."\n"
.' } else {' ."\n"
.' media.pause();' ."\n"
.' }' .PHP_EOL
.'}'
)
),
/* LtsRedmine:7911 - true, false or "ie" */
'fsHoverAltButton' => 'ie',
);
/*
|--------------------------------------------------------------------------
| OU-embed configuration.
*/
// Debugging/OU-embed: always make requests to upstream servers.
$config['always_upstream'] = true;
// Experimental (10)
$config['cache_minutes'] = false;
// Experimental.
$config['player_scripts_compress'] = false;
// NEW! OU Sharepoint NTLM (LDAP) account.
#$config['http_sharepoint_userpwd'] = '[auth-domain]\[auth-ID]:[PASSWORD]';
// Key for Embed.ly API.
$config['embedly_api_key'] = false; //'04..7';
// Optional/Experimental.
$config['flowplayer_dev'] = false;
// Flowplayer commercial license key.
$config['flowplayer_key'] = '#$0...5';
$config['flowplayer_version'] = '3.2.7';
// HTML5 audio/video fallback, see http://wiki.whatwg.org/wiki/Video_type_parameters
//Was: $config['ouplayer_video_codec'] = 'avc1.42E01E, mp4a.40.2';
//$config['ouplayer_video_type'] = 'type=\'video/mp4; codecs="avc1.42E01E, mp4a.40.2"\'';
// Optional. Set the path to the pdftohtml binary (not required on Redhat 6).
#$config['pdftohtml_path'] = $config['data_dir'].'pdftohtml-0.39/pdftohtml.exe';
/*
|--------------------------------------------------------------------------
| Open Media Player user documentation.
*/
//
$player_docs_google = 'https://docs.google.com/document/pub?id=1gcxecBs7n4snPKmQnguBytVZpGdkcjl2GqfGUz-pCOc';
$config['player_docs'] = array(
'help' => FALSE, #"$player_docs_google#id.j2um0zpktyo1",
'about'=> '__SITE__/about', #"$player_docs_google#id.mi4tst6i0wac",
'embed'=> FALSE, #"$player_docs_google#id.9xoj8o7ev1d5",
);
/*
|--------------------------------------------------------------------------
| Open Media Player themes.
*/
$config['player_default_theme'] = 'oup-light';
$config['player_mobile_theme'] = 'mejs-default';
$config[ 'player_default_theme_rgb' ] = 'omp-dark-red';
$config['player_themes'] = array(
// 'New' 2012 Mediaelement-based themes.
'mejs-default' => true,
'ouplayer-base' => true,
'oup-light' => true,
// Legacy 2011 Flowplayer-based themes.
// Experimental: 'menu' flag - make themes appear in Opera/Firefox Page/'View' > Style menu.
'basic' => array('styles'=>null, 'view'=>'ouplayer/player_noscript'),
'core' => array('styles'=>null),
'ouice-dark' => array('title'=>'OUICE Dark', 'styles'=>'ouplayer/ouice-dark/ouice-dark.css', '--menu'=>1),
'ouice-bold' => array('title'=>'OUICE Bold', 'styles'=>'ouplayer/ouice-bold/ouice-bold.css'),
'ouice-light'=> array('title'=>'OUICE Light', 'styles'=>'ouplayer/ouice-light/ouice-light.css', '--menu'=>1),
);
/*
|--------------------------------------------------------------------------
| YouTube - create you server API key at, https://console.developers.google.com
*/
$config[ 'youtube_api_key' ]= '*** EDIT ME ***';
#End.