You are here

brightcove-field-player.tpl.php in Brightcove Video Connect 7.4

brightcove-field-player.tpl.php Default template for embeding brightcove players.

Available variables:

  • $id
  • $width
  • $height
  • $classes_array
  • $bgcolor
  • $flashvars

See also

template_preprocess_brightcove_field_embed().

File

brightcove_field/brightcove-field-player.tpl.php
View source
<?php

/**
 * @file brightcove-field-player.tpl.php
 * Default template for embeding brightcove players.
 *
 * Available variables:
 * - $id
 * - $width
 * - $height
 * - $classes_array
 * - $bgcolor
 * - $flashvars
 *
 * @see template_preprocess_brightcove_field_embed().
 */
?>
<!-- Start of Brightcove Player -->

<div style="display:none">

</div>

<!--
By use of this code snippet, I agree to the Brightcove Publisher T and C
found at https://accounts.brightcove.com/en/terms-and-conditions/.
-->

<object id="<?php

print $id;
?>" class="BrightcoveExperience <?php

print join($classes_array, ',');
?>">
  <param name="bgcolor" value="<?php

print $bgcolor;
?>" />
  <param name="width" value="<?php

print $width;
?>" />
  <param name="height" value="<?php

print $height;
?>" />
  <param name="playerID" value="<?php

print $player_id;
?>" />
  <param name="playerKey" value="<?php

print $player_key;
?>" />
  <?php

if ($is_vid) {
  ?>
    <param name="isVid" value="true" />
    <param name="@videoPlayer" value="<?php

  print $brightcove_id;
  ?>" />
  <?php

}
else {
  ?>
    <param name="@videoList" value="<?php

  print $brightcove_id;
  ?>" />
    <param name="@playlistTab" value="<?php

  print $brightcove_id;
  ?>" />
    <param name="@playlistCombo" value="<?php

  print $brightcove_id;
  ?>" />
  <?php

}
?>
  <param name="isUI" value="true" />
  <param name="dynamicStreaming" value="true" />

</object>

<!-- End of Brightcove Player -->