CuPlayer

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>
api for mainbo
</title>
<style>
* {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}

body {
overflow: hidden;
}

#player {
display: flex;
justify-content: center;
align-items: center;
}
</style>
<script src="http://www.cuplayer.com/Cu/CuPlayerMiniV4/help/demo/images/swfobject.js"></script>
</head>
<body>
<form id="form1">
<div id="player" runat="server">
</div>
<script type="text/javascript">
var w = document.documentElement.clientWidth || window.innerWidth;
var h = document.documentElement.clientHeight || window.innerHeight;
var so = new SWFObject("http://www.cuplayer.com/Cu/CuPlayerMiniV4/help/demo/CuPlayerMiniV4.swf", "CuPlayerV4", w, h, "9", "#000000");
so.addParam("allowfullscreen", "true");
so.addParam("allowscriptaccess", "always");
so.addParam("wmode", "opaque");
so.addParam("quality", "high");
so.addParam("salign", "lt");
so.addVariable("CuPlayerSetFile", "http://www.cuplayer.com/Cu/CuPlayerMiniV4/help/demo/CuPlayerSetFile.xml");
so.addVariable("CuPlayerWidth", w);
so.addVariable("CuPlayerHeight", h);
so.addVariable("CuPlayerAutoPlay", "yes");
so.addVariable("CuPlayerImage", "http://www.cuplayer.com/Cu/CuPlayerMiniV4/help/demo/images/start.jpg");
//so.addVariable("CuPlayerLogo", "/images/20140801/logo-03.jpg");
//so.addVariable("CuPlayerPosition","top-right");
so.addVariable("CuPlayerFile", "http://yoursite/20151228/XXSX/作三角形的高.mp4");
so.write("player");
var url = '"http://yoursite/20151228/XXSX/作三角形的高.mp4")'
document.title = url.slice(url.lastIndexOf('/') + 1, -4);
window.addEventListener('resize', windowresize, false)
function windowresize() {
w = document.documentElement.clientWidth || window.innerWidth;
h = document.documentElement.clientHeight || window.innerHeight;
var so = new SWFObject("http://www.cuplayer.com/Cu/CuPlayerMiniV4/help/demo/CuPlayerMiniV4.swf", "CuPlayerV4", w, h, "9", "#000000");
so.addParam("allowfullscreen", "true");
so.addParam("allowscriptaccess", "always");
so.addParam("wmode", "opaque");
so.addParam("quality", "high");
so.addParam("salign", "lt");
so.addVariable("CuPlayerSetFile", "http://www.cuplayer.com/Cu/CuPlayerMiniV4/help/demo/CuPlayerSetFile.xml");
so.addVariable("CuPlayerWidth", w);
so.addVariable("CuPlayerHeight", h);
so.addVariable("CuPlayerAutoPlay", "yes");
so.addVariable("CuPlayerImage", "http://www.cuplayer.com/Cu/CuPlayerMiniV4/help/demo/images/start.jpg");
//so.addVariable("CuPlayerLogo", "/images/20140801/logo-03.jpg");
//so.addVariable("CuPlayerPosition","top-right");
so.addVariable("CuPlayerFile", "http://yoursite/20151228/XXSX/作三角形的高.mp4");
so.write("player");
}
</script>
</form>
</body>
</html>

上一篇:【Qt开发】V4L2 API详解 背景知识 打开设备设置参数


下一篇:Linux更改IP地址