FlowPlayer 参数说明
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title></title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="flowplayer-3.2.11.min.js"></script>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<form id="form1" runat="server">
<%--<div>//简单调用
<a
href="flowplayer-700.flv"
style="display:block;width:520px;height:330px"
id="player">
</a> <script>
flowplayer("player", "flowplayer-3.2.12.swf", {
clip: {
autoPlay: false,
autoBuffering:true
}
});
</script>
</div>--%>
<div>
<a href="flowplayer-700.flv" style="display: block; width: 520px; height: 330px"
id="player"></a>
<script>
flowplayer("player", "flowplayer-3.2.12.swf", {//播放器主文件(根据项目定亦可引用:http://releases.flowplayer.org/swf/flowplayer-3.2.12.swf)
clip: {
url: rtmp_name, //流的名称
autoPlay: true,//自动播放 autoBuffering:true//是否开启缓冲 },
playlist: [//播放列表
{
url: "notfound.jpg",//默认显示图片(如果没有这显示播放视频的第一个画面)
//duration: 5,//持续时间
scaling: 'orig'//缩放
},
{
url: 'flowplayer-700.flv',//需要播放的文件
autoPlay: false,
provider: 'http',
autoBuffering: true
}
],
plugins: {
controls: {
bottom: 0,//功能条距底部的距离
height: 24, //功能条高度
zIndex: 1,
fontColor: '#ffffff',
timeFontColor: '#333333',
playlist: true,//上一个、下一个按钮
play:true, //开始按钮
volume: true, //音量按钮
mute: true, //静音按钮
stop: true,//停止按钮
fullscreen: true, //全屏按钮
scrubber: true,//进度条
url: "flowplayer.controls-3.2.12.swf", //决定功能条的显示样式(功能条swf文件,根据项目定亦可引用:http://releases.flowplayer.org/swf/flowplayer.controls-3.2.12.swf)
time: true, //是否显示时间信息
autoHide: true, //功能条是否自动隐藏
backgroundColor: '#aedaff', //背景颜色
backgroundGradient: [0.1, 0.1, 1.0], //背景颜色渐变度(等分的点渐变)
opacity: 0.5, //功能条的透明度
borderRadius: '30',//功能条边角
tooltips: {
buttons: true,//是否显示
fullscreen: '全屏',//全屏按钮,鼠标指上时显示的文本
stop:'停止',
play:'开始',
volume:'音量',
mute: '静音',
next:'下一个',
previous:'上一个'
}
}
}
});
</script> </div>
</form>
</body>
</html>
以上代码来自:http://www.cnblogs.com/qidq/archive/2012/07/19/flowplayer.html
flowplayer播放器还可以播放RTMP流媒体,代码如下:
<a href="#" id="palyer3"></a>
<script>
flowplayer("palyer3", "Player/flowplayer-3.2.8.swf", {
clip: {
url: rtmp_name, //流的名称
provider: 'rtmp',
live: true,
},
plugins: {
rtmp: {
url: 'Player/flowplayer.rtmp-3.2.8.swf',
netConnectionUrl: rtmp_path
},
controls: {
play: false, opacity: 0, scrubber: false, volume: false, mute: false
}
}
});
}
</script>
FlowPlayer 参数说明的更多相关文章
- 《连载 | 物联网框架ServerSuperIO教程》2.服务实例的配置参数说明
1.C#跨平台物联网通讯框架ServerSuperIO(SSIO)介绍 <连载 | 物联网框架ServerSuperIO教程>1.4种通讯模式机制 一.综述 SuperIO(SIO)定位 ...
- JQuery UI dialog 弹窗实例及参数说明
按钮代码: <a id="suprise" style="margin-left: 0.5em;cursor:pointer;">点我会有惊喜< ...
- 服务器.htaccess 详解以及 .htaccess 参数说明(转载)
htaccess文件(或者”分布式配置文件”)提供了针对目录改变配置的方法, 即,在一个特定的文档目录中放置一个包含一个或多个指令的文件, 以作用于此目录及其所有子目录.作为用户,所能使用的命令受到限 ...
- Mongodb启动命令mongod参数说明
Mongodb启动命令mongod参数说明 mongod的主要参数有: 基本配置 ----------------------------------------------------------- ...
- Connect to Database Using Custom params链接数据库配置参数说明
使用RF的关键字Connect to Database Using Custom params链接数据库,对应的参数说明: a) 第一个参数我使用的是cx_Oracle,就写这个 b) ...
- .htaccess详解及.htaccess参数说明【转】
目录(?)[-] htaccess 详解 htaccess rewrite 规则详细说明 RewriteEngine OnOff RewriteBase URL-path RewriteCond Te ...
- 转载《SimpleAdapter的参数说明》
SimpleAdapter的参数说明 第一个参数 表示访问整个android应用程序接口,基本上所有的组件都需要 第二个参数表示生成一个Map(String ,Object)列表选项 第三个参数表示界 ...
- Redis配置文件参数说明
Redis配置文件参数说明 1. Redis默认不是以守护进程的方式运行,可以通过该配置项修改,使用yes启用守护进程 daemonize no 2. 当Redis以守护进程方式运行时,Redis ...
- mosquitto_pub和mosquitto_sub 命令参数说明
mosquitto_pub 命令参数说明 1. -d 打印debug信息 2. -f 将指定文件的内容作为发送消息的内容 3. -h 指定要连接的域名 默认为localhost 4. -i ...
随机推荐
- yo angualr-fullstatck 项目打包部署
yoeman使用grunt进行打包部署,直接运行grunt命令即可,期间会对代码进行检查,如果存在不规范的地方jshint会指定出来. grunt会对静态资源进行打包而且对资源文件名进行了MD5作为版 ...
- SCLButton
import UIKit let kSuccessTitle = "Congratulations" let kErrorTitle = "Connection erro ...
- uglifyjs压缩js文件(指令压缩/ 批量压缩/ 编程方式压缩)
一.指令压缩 1.安装node,npm——详细见nodejs安装与使用入门 2.安装 uglifyjs——npm install -g uglify-js 3.压缩例子:1)uglifyjs mai ...
- Balanced Binary Tree——LeetCode
Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary ...
- 黑马程序员_Java基础组成
Java语言基础组成 2.1关键字 main不是关键字,但被JVM所识别的名称. 关键字的定义和特点 定义:被Java语言赋予了特殊含义的单词. 特点:关键字中所有字母都为小写. 用于定义数据类型的关 ...
- Flas-SQLAchemy数据库操作使用学习笔记
Flas-SQLAchemy数据库操作使用学习笔记 Flask-SQLALchemy 是一个给你的应用添加 SQLALchemy 支持的 Flask 扩展.SQLALchemy 是Python语言的S ...
- JavaScript的闭包详解
(1)定义: 函数内部返回一个函数,返回出来的这个函数叫做被我们称之为闭包(个人理解的最简单的表现形式,) (2)为什么要使用闭包呢? 局部变量在函数执行完之后就会被GC回收,有时候我们想在外部访问内 ...
- 新建maven工程时pom.xml报错
新建maven工程时,pom.xml报错:第一行报如下错误:multiple annotations found at this line后添加org.eclipse.m2e相关的plugin配置后, ...
- linux —— 初探
目录: linux 知识拓展 ubuntu 的安装 安装完成后做的那些事 1.linux 知识拓展 开源世界旅行手册:一个中文网站,根据<Ubuntu教程>而撰写的有趣的文档.作者说:“只 ...
- C# 将MSMQ消息转换成Json格式 【优化】
C# 将MSMQ消息转换成Json格式 [优化] 转换函数: private string ConvertToJSON(string label, string body) { //TODO: co ...