You are here

brightcove-field-embed.tpl.php in Brightcove Video Connect 7.6

Same filename and directory in other branches
  1. 7.7 brightcove-field-embed.tpl.php

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().

File

brightcove-field-embed.tpl.php
View 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>