---
title: "使用flowplayer播放Flash Video"
author: "teamojiao"
date: "2009-11-12T00:14:12Z"
tags: []
slug: "flowplayer-flash-video"
draft: false
lastmod: "2009-11-12T00:14:12Z"
id: 514977
url: "https://teamojiao.iteye.com/blog/514977"
---

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