brightcove-field-embed.tpl.php in Brightcove Video Connect 7.6
Same filename and directory in other branches
brightcove-field-embed.tpl.php Default template for embeding brightcove players.
Available variables:
- $id
- $account_id
- $player_id
- $data_usage
- $video_id
- $width
- $height
See also
template_preprocess_brightcove_field_embed().
5 theme calls to brightcove-field-embed.tpl.php
- brightcove_field_player in ./
brightcove.module - Callback for brightcove_field_player - checks access to the field and prints a player for Lightbox2.
- brightcove_media_file_formatter_video_html_tag_view in brightcove_media/
brightcove_media.module - The brightcove_media_video_file_formatter view callback.
- theme_brightcove_field_formatter_default in ./
brightcove_field.formatters.inc - Theme callback for Brightcove field formatter. Returns an embedded player with default site player.
- _filter_brightcove_replace in ./
brightcove.module - Callback for preg_replace() in _filter_brightcove().
- _filter_brightcove_replace_old in ./
brightcove.module - Callback for preg_replace() in _filter_brightcove().
File
brightcove-field-embed.tpl.phpView source
<?php
/**
* @file brightcove-field-embed.tpl.php
* Default template for embeding brightcove players.
*
* Available variables:
* - $id
* - $account_id
* - $player_id
* - $data_usage
* - $video_id
* - $width
* - $height
*
* @see template_preprocess_brightcove_field_embed().
*/
?>
<video
id="<?php
print $id;
?>"
data-account="<?php
print $account_id;
?>"
data-player="<?php
print $player_id;
?>"
data-embed="<?php
print $embed;
?>"
data-usage="<?php
print $data_usage;
?>"
<?php
if ($type === BRIGHTCOVE_EMBED_TYPE_VIDEO) {
?>
data-video-id="<?php
print $brightcove_id;
?>"
<?php
}
?>
<?php
if ($type === BRIGHTCOVE_EMBED_TYPE_PLAYLIST) {
?>
data-playlist-id="<?php
print $brightcove_id;
?>"
<?php
}
?>
width="<?php
print $width;
?>"
height="<?php
print $height;
?>"
class="video-js" controls></video>
<?php
if ($type === BRIGHTCOVE_EMBED_TYPE_PLAYLIST) {
?>
<ol class="vjs-playlist"></ol>
<?php
}
?>
<script src="//players.brightcove.net/<?php
print $account_id;
?>/<?php
print $player_id;
?>_<?php
print $embed;
?>/index.min.js"></script>