videojs.tpl.php in Video.js (HTML5 Video Player) 7.2
File
theme/videojs.tpl.php
View source
<?php
$attrs = '';
if (!empty($autoplay)) {
$attrs .= ' autoplay="autoplay"';
}
if (!empty($poster)) {
$attrs .= ' poster="' . check_plain($poster) . '"';
}
if (!empty($items)) {
?>
<video id="<?php
print $player_id;
?>-video" class="video-js vjs-default-skin" width="<?php
print $width;
?>" height="<?php
print $height;
?>" controls="controls" preload="auto"<?php
echo $attrs;
?> data-setup='{
"width": <?php
echo $width;
?>,
"height": <?php
echo $height;
?>
}'>
<?php
foreach ($items as $item) {
?>
<source src="<?php
print check_plain(file_create_url($item['uri']));
?>" type="<?php
print check_plain($item['videotype']);
?>" />
<?php
}
?>
</video>
<?php
}