← Форум / Вопросы / убрать перемодку
добрый день хочу использовать данный плеер для потокового вещание все устраивать но не могу сделать так чтоб место шкалы времени ползунка не было и где время была надпись Live
заранее спасибо
заранее спасибо
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Пример проверки на Flash и HTML5</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
<script type="text/javascript" src="http://xxxxxxx/uppod/uppod.js"></script>
</head>
<body>
<center>
<div id="videoplayer" style="width:470px;height:320px;" ></div>
</center>
<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 && !flashInstalled)){
// HTML5
this.videoplayer = new Uppod({m:"video",uid:"videoplayer",file:"http://xxxxxxx/vod/net-in.mp4/index.m3u8",comment:"LIVE"});
}else{
if(!flashInstalled){
// NO FLASH
document.getElementById("videoplayer").innerHTML="<a href=http://www.adobe.com/go/getflashplayer>Требуется установить Flash-плеер</a>";
}else{
// FLASH
var flashvars = {"file":"http://xxxxxxx/vod/net-in.mp4/index.m3u8","st":"http://xxxxxxxx/uppod/st/video165-1570.txt","uid":"videoplayer","comment":"LIVE"};
var params = {bgcolor:"#ffffff", allowFullScreen:"true", allowScriptAccess:"always",id:"videoplayer"};
new swfobject.embedSWF("http://sxxxxxx/uppod/uppod-hls.swf", "videoplayer", "500", "375", "10.0.0", false, flashvars, params);
}
}
</script>
</body>
</html>
<head>
<title>Пример проверки на Flash и HTML5</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
<script type="text/javascript" src="http://xxxxxxx/uppod/uppod.js"></script>
</head>
<body>
<center>
<div id="videoplayer" style="width:470px;height:320px;" ></div>
</center>
<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 && !flashInstalled)){
// HTML5
this.videoplayer = new Uppod({m:"video",uid:"videoplayer",file:"http://xxxxxxx/vod/net-in.mp4/index.m3u8",comment:"LIVE"});
}else{
if(!flashInstalled){
// NO FLASH
document.getElementById("videoplayer").innerHTML="<a href=http://www.adobe.com/go/getflashplayer>Требуется установить Flash-плеер</a>";
}else{
// FLASH
var flashvars = {"file":"http://xxxxxxx/vod/net-in.mp4/index.m3u8","st":"http://xxxxxxxx/uppod/st/video165-1570.txt","uid":"videoplayer","comment":"LIVE"};
var params = {bgcolor:"#ffffff", allowFullScreen:"true", allowScriptAccess:"always",id:"videoplayer"};
new swfobject.embedSWF("http://sxxxxxx/uppod/uppod-hls.swf", "videoplayer", "500", "375", "10.0.0", false, flashvars, params);
}
}
</script>
</body>
</html>
RashShadow | Ссылка на пост (Смотрели 1081) | 21.03.18 15:47 Ответить |
</p>
<center>
<div id="player" style="width: 640px; height: 360px;"></div>
<script type="text/javascript">
var player = new Playerjs({
id: "player",
file: "http://xxxxxxxx:80/live/kzc/index.m3u8"
});
</script>
видео работает везде кроме IE