From 0ce24fea04b8b571ef887d184a7f8cdeca2d4c4a Mon Sep 17 00:00:00 2001 From: Heshan Date: Wed, 6 Apr 2011 21:47:46 +0530 Subject: #1092668 by anglo VideoJS player --- modules/video_ui/video.admin.inc | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'modules') 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' => '
', '#suffix' => '
', ); - + // 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' => '', ); } + // 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.
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' => '
', + '#suffix' => '
', + ); + } } return system_settings_form($form); } -- cgit v1.2.3