Вход Регистрация
Файл: adultscript-2.0.3-pro/files/templates/defboot/video_view_videojs.tpl.php
Строк: 54
<?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/video-js/video-js.min.css" rel="stylesheet">
<script type="text/javascript" src="<?php echo REL_URL?>/misc/video-js/video.js"></script>
<script type="text/javascript">videojs.options.flash.swf = "<?php echo BASE_URL?>/misc/video-js/video-js.swf";</script>
<?php $logo VCfg::get('player.videojs.url'); if ($logo): ?>
<link href="<?php echo REL_URL?>/misc/video-js-watermark/videojs.watermark.css" rel="stylesheet">
<script type="text/javascript" src="<?php echo REL_URL?>/misc/video-js-watermark/videojs.watermark.js"></script>
<?php endif; ?>
<div id="player-container">
    <?php $adv p('adv_overlay''player-overlay'); if ($adv): echo $adv; endif; ?>
    <video id="player" class="video-js vjs-default-skin" controls <?php if (VCfg::get('player.videojs.autoplay')): echo'autoplay '; endif; ?>preload="auto" width="100%" height="100%" poster="<?php echo THUMB_URL,'/',path($this->video['video_id']); ?>/player.jpg">
        <source src="<?php echo urldecode($url); ?>" type="video/mp4" />
    </video>
</div>
<script type="text/javascript">
$(document).ready(function() {
    var player = videojs('player');    
    <?php if (isset($this->url_next)): ?>
    player.ready(function() {this.on('ended', function() {window.location = base_url + '<?php echo $this->url_next?>';});});
    <?php endif; if ($adv): ?>
    videojs('player').ready(function() {
        this.on('play', function() {$("#player-advertising").hide();});
        this.on('pause', function() {$("#player-advertising").show();});
    });
    <?php endif; if ($logo): ?>  
    player.watermark({
          'file': '<?php echo $logo?>',
        <?php $position VCfg::get('player.videojs.position'); if ($position == '0'): ?>
        'xpos': 0,
        'ypos': 0
        <?php elseif ($position == '1'): ?>
        'xpos': 100,
        'ypos': 0
        <?php elseif ($position == '2'): ?>
        'xpos': 0,
        'ypos': 100
        <?php else: ?>
        'xpos': 100,
        'ypos': 100
        <?php endif; ?>
    });
    <?php endif; if ($adv): ?>    
    $(".btn-adv").click(function(e) {
        e.preventDefault();

        $("#player-advertising").hide();

        videojs('player').ready(function() {
            this.play();
        });
    });
    <?php endif; ?>    
});
</script>
Онлайн: 1
Реклама