{% else-1 %}
(8 дек 2014, 14:08) (0/0) [0]
[code]echo '<script src="путь к файлу/js/uppod.js" type="text/javascript"></script>
<div class="player" id="videoplayer"></div>
<script type="text/javascript">this.player = new Uppod({m:"video",uid:"videoplayer",file:"Путь к файлу",poster:""});</script>
<div id="videoplayer"></div>
<script type="text/javascript">
var ua = navigator.userAgent.toLowerCase();
var flashInstalled = false;
if (typeof(navigator.plugins)!="undefined"&&typeof(navigator.plugins["Shockwave Flash"])=="object"*{
flashInstalled = true;
} else if (typeof window.ActiveXObject != "undefined"* {
try {
if (new ActiveXObject("ShockwaveFlash.ShockwaveFlash"*) {
flashInstalled = true;
}
} catch(e) {};
};
if(ua.indexOf("iphone"* != -1 || ua.indexOf("ipad"* != -1 || ua.indexOf("android"* != -1 || ua.indexOf("windows phone"* != -1 || ua.indexOf("blackberry"* != -1){
//код HTML5
}else{
if(!flashInstalled){
//просим установить Flash
document.getElementById("videoplayer"*.innerHTML="<a href=http://www.adobe.com/go/getflashplayer>Требуется обновить Flash-плеер</a>";
}else{
//код Flash (SWFObject)
}
}</script><br/>';[/code]

JS-можешь тут скачать http://uppod.ru/help/html5/
  • 1 из 1