Файл: adultscript-2.0.3-pro/files/templates/defboot/video_view_flowplayer5.tpl.php
Строк: 42
<?php defined('_VALID') or die('Restricted Access!'); ?>
<?php VHelper::load('module.video.stream'); if (VF::factory('device')->isMobile() && $this->video['mobile']):
$url = VHelper_video_stream::url_mobile(TRUE, $this->video['video_id'], 'mp4', $this->video['server']); else:
$url = VHelper_video_stream::url(TRUE, $this->video['video_id'], 'mp4', $this->video['server']); endif; ?>
<link href="<?php echo REL_URL; ?>/misc/flowplayer5/skin/playful.css" rel="stylesheet">
<script type="text/javascript" src="<?php echo REL_URL; ?>/misc/flowplayer5/flowplayer.min.js"></script>
<div id="player-container">
<?php $adv = p('adv_overlay', 'player-overlay'); if ($adv): echo $adv; endif; ?>
<div id="player">
<video <?php if (VCfg::get('player.flowplayer5.autoplay')): echo 'autoplay '; endif; ?>preload="auto" poster="<?php echo THUMB_URL,'/',path($this->video['video_id']); ?>/player.jpg">
<source type="video/mp4" src="<?php echo $url; ?>">
</video>
</div>
</div>
<script type="text/javascript">
$(document).ready(function() {
$("#player").flowplayer({
swf: "<?php echo REL_URL; ?>/misc/flowplayer5/flowplayer.swf",
ratio: '16:9',
splash: true
});
<?php if ($adv or isset($this->url_next)): ?>
var api = flowplayer();
<?php if ($adv): ?>
api.bind("ready", function(e, api) {$("#player-advertising").show();});
api.bind("pause", function(e, api) {$("#player-advertising").show();});
api.bind("resume", function(e, api) {$("#player-advertising").hide();});
$(".btn-adv").click(function(e) {
e.preventDefault();
$("#player-advertising").hide();
api.play();
});
<?php endif; if (isset($this->url_next)): ?>
api.bind("finish", function(e, api) {window.location = base_url + '<?php echo $this->url_next; ?>';});
<?php endif; endif; ?>
});
</script>