Файл: templates/frontend/dark-red/embed.tpl
Строк: 92
<!DOCTYPE html>
<html>
<head>
<script
type="text/javascript">
var vitem =
"{$vitem}";
</script>
{include
file='player_settings.tpl'}
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<link
href="{$base_url}/media/player/videojs/video-js.css"
rel="stylesheet">
<link
href="{$base_url}/media/player/videojs/plugins/videojs-resolution-switcher-master/lib/videojs-resolution-switcher.css"
rel="stylesheet">
<link
href="{$base_url}/media/player/videojs/plugins/videojs-logobrand-master/src/videojs.logobrand.css"
rel="stylesheet">
<link
href="{$base_url}/media/player/videojs/plugins/videojs-thumbnails-master/videojs.thumbnails.css"
rel="stylesheet">
<link
href="{$base_url}/media/player/videojs/video-js-custom.css"
rel="stylesheet">
{if $vast_vpaid &&
$player.vast_vpaid_adv}
<link
href="{$baseurl}/media/player/videojs/plugins/videojs-vast-vpaid-master/bin/videojs.vast.vpaid.css"
rel="stylesheet">
{/if}
<script
src="{$baseurl}/media/player/videojs/ie8/videojs-ie8.min.js"></script>
<script
src="{$baseurl}/media/player/videojs/video.js"></script>
{if
$vast_vpaid && $player.vast_vpaid_adv}
<script
src="{$baseurl}/media/player/videojs/plugins/videojs-vast-vpaid-master/bin/es5-shim.js"></script>
<script
src="{$baseurl}/media/player/videojs/plugins/videojs-vast-vpaid-master/bin/ie8fix.js"></script>
<script
src="{$baseurl}/media/player/videojs/plugins/videojs-vast-vpaid-master/bin/videojs_5.vast.vpaid.min.js"></script>
{/if}
<script
src="{$base_url}/media/player/videojs/plugins/videojs-resolution-switcher-master/lib/videojs-resolution-switcher.js"></script>
<script
src="{$base_url}/media/player/videojs/plugins/videojs-logobrand-master/src/videojs.logobrand.js"></script>
<script
src="{$base_url}/media/player/videojs/plugins/videojs-thumbnails-master/videojs.thumbnails.js"></script>
<style>
{literal}
body
{
margin:0!important;
padding:0!important;
overflow:hidden;
background-color:
#000;
}
.text-error {
font-family: "Open Sans",
"Helvetica Neue", Helvetica, Arial, sans-serif;
font-size:
14px;
line-height: 1.42857143;
color: red;
padding:
10px;
}
.text-message {
font-family: "Open Sans",
"Helvetica Neue", Helvetica, Arial, sans-serif;
font-size:
16px;
line-height: 1.42857143;
color: #fff;
padding:
10px;
}
.text-message a {
color: #ccc;
}
.text-message a:visited
{
color: #ccc;
}
.video-embedded {
width: 100%;
overflow:
hidden;
}
.video-embedded iframe {
width: 100%!important;
height:
100%!important;
}
{/literal}
</style>
</head>
<body>
{if
$video.VID}
{if $video.embed_code != ''}
<div
class="video-embedded">
{$video.embed_code}
</div>
{else}
<div
class="video-container">
<script>
{literal}
let
vid_files = '{"vid_files":['+
{/literal}
{if $video.iphone
==
1}
{literal}'{"src":"{/literal}{$video_root}/iphone/{$video.VID}.mp4","type":"video/mp4",
"label":"SD", "res":"720"
{literal}},'+{/literal}
{if $video.hd ==
1}
{literal}'{"src":"{/literal}{$video_root}/hd/{$video.VID}.mp4","type":"video/mp4",
"label":"HD", "res":"1080"
{literal}}},'+{/literal}
{/if}
{else}
{section name=i
loop=$video.files}
{literal}'{"src":"{/literal}{$video.files[i].url}","type":"video/{$video.files[i].format}",
"label":"{$video.files[i].label}",
"res":"{$video.files[i].height}"
{literal}},{/literal}'+
{/section}
{/if}
{literal}
']}';
{/literal}
</script>
<video
id="video" class="video-js vjs-16-9 vjs-big-play-centered
vjs-sublime-skin" preload="auto" controls="true"
playsinline webkit-playsinline poster="{insert name=thumb_path
vid=$video.VID}/default.jpg" data-setup='{
"autoplay":
{if $player.autoplay}true{else}false{/if}{if $vast_vpaid &&
$player.vast_vpaid_adv},
"plugins": {
"vastClient": {
"adTagUrl":
"{$vast_vpaid.adtagurl}",
"adCancelTimeout":
{$vast_vpaid.adscanceltimeout},
"playAdAlways":
true,
"adsEnabled": {if
$player.vast_vpaid_adv}true{else}false{/if}
}
}
{/if}}'>
<p class="vjs-no-js">To view this
video please enable JavaScript, and consider upgrading to a web browser
that <a href="http://videojs.com/html5-video-support/"
target="_blank">supports HTML5
video</a></p>
</video>
</div>
{/if}
{/if}
<script
type="text/javascript"
src="{$relative_tpl}/js/player.js?ver=1.0.35"></script>
<script
type="text/javascript"
src="{$relative_tpl}/js/decrypt.min.js?ver=1.0.35"></script>
<script
type="text/javascript"
src="{$relative_tpl}/js/player-init.min.js?ver=1.0.35"></script>
<script
src="{$baseurl}/media/player/videojs/video-js-events.js?ver=1.0.20"></script>
</body>
</html>