jw_player.tpl.php in JW Player 7.2
Same filename and directory in other branches
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 also
1 theme call to jw_player.tpl.php
- jw_player_field_formatter_view in ./
jw_player.module - Implements hook_field_formatter_view().
File
theme/jw_player.tpl.phpView 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
}