1.安装
./configure --with-http_flv_module
2.配置 nginx.conf :
http {
server {
location ~*\.flv$ {
root /opt/video/flv/;
#limit_rate_after 1m;
limit_rate 1024k;
flv;
}
}
}
3.页网嵌入:
- <head>
- <script type="text/javascript" src=""></script>
- <script type="text/javascript">
- function plays(){
- var flashvars={
- file:"",
- type:"http",
- autostart:"false",
- streamer:"start"
- };
- var params={
- allowfullscreen:"true",
- allowscriptaccess:"always"
- };
- var attributes={
- id:"player1",
- name:"player1"
- };
- swfobject.embedSWF("", "player1", "610", "400", "10.0.0",false,flashvars,params,attributes);
- }
- </script>
- </head>
4.文件 swfobject.js
阅读(925) | 评论(0) | 转发(1) |