diff options
author | Heshan <heshan@heidisoft.com> | 2011-04-06 21:47:46 +0530 |
---|---|---|
committer | Heshan <heshan@heidisoft.com> | 2011-04-06 21:47:46 +0530 |
commit | 0ce24fea04b8b571ef887d184a7f8cdeca2d4c4a (patch) | |
tree | d07484b2f7e7de07fe2fec0a27198a6857bc629f /modules/video_ui/video.admin.inc | |
parent | 33aed9a2bc33078ffd2ba46d2e77ac78de187512 (diff) | |
download | video-0ce24fea04b8b571ef887d184a7f8cdeca2d4c4a.tar.gz video-0ce24fea04b8b571ef887d184a7f8cdeca2d4c4a.tar.bz2 |
#1092668 by anglo VideoJS player
Diffstat (limited to 'modules/video_ui/video.admin.inc')
-rw-r--r-- | modules/video_ui/video.admin.inc | 15 |
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); } |