aboutsummaryrefslogtreecommitdiff
path: root/modules/video_ui
diff options
context:
space:
mode:
Diffstat (limited to 'modules/video_ui')
-rw-r--r--modules/video_ui/video.admin.inc15
1 files changed, 14 insertions, 1 deletions
diff --git a/modules/video_ui/video.admin.inc b/modules/video_ui/video.admin.inc
index ed76a20..2f1c94b 100644
--- a/modules/video_ui/video.admin.inc
+++ b/modules/video_ui/video.admin.inc
@@ -101,6 +101,7 @@ function video_players_admin_settings() {
$extensions = video_video_extensions();
$players = video_video_players();
$flv_players = video_video_flv_players();
+ $html5_players = video_video_html5_players();
foreach ($extensions as $ext => $player) {
$form['extensions']['video_extension_' . $ext] = array(
@@ -111,7 +112,7 @@ function video_players_admin_settings() {
'#prefix' => '<div class="video_select" rel="' . $ext . '">',
'#suffix' => '</div>',
);
-
+ // For flash
if (!empty($flv_players)) {
$form['extensions']['video_extension_' . $ext . '_flash_player'] = array(
'#type' => 'radios',
@@ -129,6 +130,18 @@ function video_players_admin_settings() {
'#suffix' => '</div>',
);
}
+ // for HTML5
+ if (!empty($html5_players)) {
+ $form['extensions']['video_extension_' . $ext . '_html5_player'] = array(
+ '#type' => 'radios',
+ '#title' => t('HTML5 Player for') . ' ' . $ext,
+ '#options' => $html5_players,
+ '#markup' => t('Additional HTML5 players module.<br />You can install !VideoJS.', array('!VideoJS' => l(t('Video JS'), 'http://www.drupal.org/project/videojs'))),
+ '#default_value' => variable_get('video_extension_' . $ext . '_html5_player', ''),
+ '#prefix' => '<div class="admin_html5_player_wrapper" id="html5_player_' . $ext . '">',
+ '#suffix' => '</div>',
+ );
+ }
}
return system_settings_form($form);
}