<!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>

CuPlayer的更多相关文章

  1. cuplayer酷播播放器 swf 带参数直接播放

    客户需要使用cuplayer,直接调用swf 播放器. /Player/player.swf?FlvID=745,此处写入视频ID; 官方给的例子,运行是有问题的. http://www.cuplay ...

  2. TimerToPdf

    1.----------------TimerEvent-------------------var today:Date=new Date();hours == today.hours;minute ...

  3. 常用MIME类型(Flv,Mp4的mime类型设置)(转载)

    转载地址:http://www.cuplayer.com/player/Help/2011/0625/83.html 也许你会在纳闷,为什么我上传了flv或MP4文件到服务器,可输入正确地址通过htt ...

  4. ThinkCmfX模板常量

    一.public文件: 1.各种js文件,包括cookie.js.ajaxFrom.js等系统自带的js文件 2.simpleboot:bootstrap.图标font文件 二.themes:前端模板 ...

  5. 基于Red5的视频直播平台

    搭建环境:Win2008 server + jdk1.8+red5-server-1.0.6 下载地址:https://github.com/Red5 修改启动配置文件(修改为jdk路径): 安装模版 ...

  6. fFFmpeg 命令、案例、测试集中营

    gitbook: https://www.gitbook.com/book/xdsnet/other-doc-cn-ffmpeg/details ffmpeg [全局选项] {[输入文件选项] -i ...

  7. [ActionScript] AS3利用SWFObject与JS通信

    首先介绍SWFObject的用法: swfobject.embedSWF(swfUrl, id, width, height, version, expressInstallSwfurl, flash ...

  8. adobeMediaServer

    参考地址: http://www.piis.cn/news/new519.asp http://www.cuplayer.com/player/PlayerCode/RTMP/2012/0918427 ...

  9. 转载:as3.0下对象类型返回值与变量默认值的详细说明

    转自:http://www.cuplayer.com/player/PlayerCodeAs/2012/0905367.html Null.NaN.undefined 及各自应用对象:变量的默认值: ...

随机推荐

  1. nginx启动报错:/usr/local/nginx/sbin/nginx: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory

    查看依赖库:

  2. Hacker Rank: Two Strings - thinking in C# 15+ ways

    March 18, 2016 Problem statement: https://www.hackerrank.com/challenges/two-strings/submissions/code ...

  3. bootstrap

    访问Bootstrap中文网,下载bootstrap中文文档,选择用于生产环境的bootstrap. 在官网使用ctrl+f查找想要的内容. 这里记一下Visual Studio Code软件的用法: ...

  4. Nova PhoneGap框架 第十章 开发环境

    10.1 Visual Studio + ReSharper PhoneGap程序由HTML.CSS和JS编写而成,这3种语言的编写你都可以用记事本来完成,但显然效率比较低,出错的概率也比较大.一个强 ...

  5. js中几种实用的跨域方法原理详解(转)

    今天研究js跨域问题的时候发现一篇好博,非常详细地讲解了js几种跨域方法的原理,特分享一下. 原博地址:http://www.cnblogs.com/2050/p/3191744.html 下面正文开 ...

  6. 快速Android开发系列网络篇之Retrofit

    Retrofit是一个不错的网络请求库,用官方自己的介绍就是: A type-safe REST client for Android and Java 看官网的介绍用起来很省事,不过如果不了解它是怎 ...

  7. ABP源码分析十一:Timing

    Timing这个简单实用的功能主要用于以统一的方式表示时间.因为ABP中有大量的module,还支持自定义module,所以将时间统一表示为local时间(默认)或utc时间是必要的. IClockP ...

  8. stanford corenlp自定义切词类

    stanford corenlp的中文切词有时不尽如意,那我们就需要实现一个自定义切词类,来完全满足我们的私人定制(加各种词典干预).上篇文章<IKAnalyzer>介绍了IKAnalyz ...

  9. MSSQL 基础语句笔记

    建库 CREATE DATABASE 数据库名 ON[PRIMARY] --默认属于PRIMARY主文件组,可省略 ( NAME='', --主数据文件的逻辑名 名称 FILEAME='', --主数 ...

  10. 剖析AngularJS作用域

    一.概要 在AngularJS中,子作用域(child scope)基本上都要继承自父作用域(parent scope). 但,事无绝对,也有特例,那就是指令中scope设置项为对象时,即scope: ...