index 3937bae..1c742e4 100644 --- a/themes/media-brightcove-video.tpl.php +++ b/themes/media-brightcove-video.tpl.php @@ -20,4 +20,4 @@ * $options // Various option overrides passed to the theme. */ ?> -
\ No newline at end of file +
\ No newline at end of file diff --git a/themes/media_brightcove.theme.inc b/themes/media_brightcove.theme.inc index d3b9688..d08cf04 100644 --- a/themes/media_brightcove.theme.inc +++ b/themes/media_brightcove.theme.inc @@ -30,6 +30,15 @@ function template_preprocess_media_brightcove_video(&$variables) { static $count = 0; if ($variables['video_id']) { + if ($_SERVER['HTTPS'] == 'on') { + drupal_set_html_head(''); + $variables['secure'] = 'true'; + } + else { + drupal_set_html_head(''); + $variables['secure'] = 'false'; + } + drupal_set_html_head(''); $variables['width'] = !empty($variables['width']) ? $variables['width'] : (!empty($variables['options']['width']) ? $variables['options']['width'] : media_brightcove_variable_get('default_width')); $variables['height'] = !empty($variables['height']) ? $variables['height'] : (!empty($variables['options']['height']) ? $variables['options']['height'] : media_brightcove_variable_get('default_height')); @@ -49,7 +58,7 @@ function template_preprocess_media_brightcove_video(&$variables) { $variables['player_id'] = check_plain($player_id); $variables['video_id'] = check_plain($variables['video_id']); - $variables['object_id'] = 'media-brightcove-video-'. ($count++); + $variables['object_id'] = 'myExperience'. $variables['video_id']; $variables['div_id'] = 'media-brightcove-'. ($count++); $variables['classes'] = array('media-brightcove'); $variables['availability'] = TRUE; @@ -83,7 +92,20 @@ function template_preprocess_media_brightcove_video(&$variables) { // @TODO: Tie this in. $autostart = $variables['options']['autoplay'] ? 'autoStart=true' : 'autoStart=false'; $variables['output'] = << + + + + + + + + + + + + + + OUTPUT; } }