Файл: media/include.php
Строк: 80
<html>
<link rel="stylesheet" href="/media/style.css" type="text/css"/>
<style>
.mejs__overlay-button {
background-image: url("/media/mejs-controls.svg");
}
.mejs__overlay-loading-bg-img {
background-image: url("/media/mejs-controls.svg");
}
.mejs__button > button {
background-image: url("/media/mejs-controls.svg");
}
</style>
<script>
player_volume=0.5;
jQuery(document).ready(function($) {
$('audio').mediaelementplayer({
//settings
loop: true,
autoRewind: true,
enableAutosize: true,
iPadUseNativeControls: true,
iPhoneUseNativeControls: true,
AndroidUseNativeControls: true,
features: ['playpause', 'current', 'progress', 'duration','volume'],
stretching: "auto",
success: function(player, node) {
// Optional
$(player).closest('.mejs__container').attr('lang', mejs.i18n.language());
$('html').attr('lang', mejs.i18n.language());
// More code
}
});
$('video').mediaelementplayer({
//settings
loop: true,
autoRewind: true,
enableAutosize: true,
iPadUseNativeControls: true,
iPhoneUseNativeControls: true,
AndroidUseNativeControls: true,
features: ['playpause', 'current', 'progress', 'duration','volume','fullscreen'],
stretching: "auto",
success: function(player, node) {
// Optional
$(player).closest('.mejs__container').attr('lang', mejs.i18n.language());
$('html').attr('lang', mejs.i18n.language());
// More code
}
});
});
</script>
<script src="/media/player.js"></script>
<script src="/media/renderers/facebook.js"></script>
<script src="/media/renderers/twitch.js"></script>
</html>
<?
$languages_media_player=array('ru');
if($_COOKIE['language']=="ru")echo '<script src="'.ROOT.'media/lang/ru.js"></script>';
if(isset($_COOKIE['language']) and in_array($languages_media_player,$_COOKIE['language']))$languages_media=$_COOKIE['language']; else $languages_media='ru';
?>
<script>
mejs.i18n.language('<?echo $languages_media;?>');
</script>