You are here

jw_player.tpl.php in JW Player 7.2

Same filename and directory in other branches
  1. 7 theme/jw_player.tpl.php

Display the JW Player.

Variables available:

  • $html_id: Unique id generated for each video.
  • $jw_player_inline_js_code: JSON data with configuration settings for the video player.

File

theme/jw_player.tpl.php
View source
<?php

/**
 * @file
 * Display the JW Player.
 *
 * Variables available:
 * - $html_id: Unique id generated for each video.
 * - $jw_player_inline_js_code: JSON data with configuration settings for the video player.
 *
 * @see template_preprocess_jw_player()
 */
?>
<div id="<?php

print $html_id;
?>" class="jwplayer-video">
Loading Video...
</div>
<?php

if (isset($jw_player_inline_js_code)) {
  ?>
  <script type="text/javascript">
    jwplayer('<?php

  print $html_id;
  ?>').setup(<?php

  print $jw_player_inline_js_code;
  ?>);
  </script>
<?php

}