http://flowplayer.org/index.html
1:在网页中需要引入flashembed.min.js这个文件
2:声明一个带id的div
3: 添加js代码
window.onload = function() {
/*
use flashembed to place flowplayer into HTML element
whose id is "example" (below this script tag)
*/
flashembed("example",
/*
first argument supplies standard Flash parameters. See full list:
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_12701
*/
{
src:'$ServerURL/FlowPlayerDark.swf',
width: 468,
height: 350
},
/*
second argument is Flowplayer specific configuration. See full list:
http://flowplayer.org/player/configuration.html
*/
{config: {
videoFile: '$ServerURL/$name.flv'
}}
);
}
<div id="example"></div>