博客日历
2025年04月 | ||||||
一 | 二 | 三 | 四 | 五 | 六 | 七 |
31 | 1 | 2 | 3 | 4 | 5 | 6 |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 1 | 2 | 3 | 4 |
存档
2025年03月 2024年
03月 04月 05月 2021年
01月 02月 11月 12月 2020年
02月 03月 04月 05月 06月 07月
09月 2018年
09月 2017年
01月 02月 07月 2016年
01月 04月 07月 08月 11月 12月
2015年
01月 02月 03月 05月 09月 10月
11月 2014年
01月 02月 03月 04月 05月 06月
07月 08月 09月 10月 11月 12月
2013年
01月 02月 03月 04月 05月 06月
07月 08月 09月 10月 11月 12月
2012年
01月 02月 03月 04月 05月 06月
07月 08月 09月 10月 11月 12月
2011年
01月 02月 03月 04月 05月 06月
07月 08月 09月 10月 11月 12月
2010年
01月 02月 03月 04月 05月 06月
07月 08月 09月 10月 11月 12月
2009年
03月 04月 05月 06月 07月 08月
09月 10月 11月 12月
nginx的基本配置:nginx.conf示例与支持拖动的flv视频服务
worker_processes 1;
events
{
worker_connections 1024;
}
http
{
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server
{
listen 8088;
server_name localhost;
root D:/DemoServer/src/test_applications/nginx-www-root;
location /
{
index index.htm default.htm default.aspx;
}
#对于扩展名是ASP的请求,反向代理IIS
location ~ \.(asp)$
{
proxy_pass http://127.0.0.1:8081;
}
#反向代理mono fastcgi
location ~ \.(aspx|asmx|ashx|asax|ascx|soap|rem|axd|cs|config|dll)$
{
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
#反向代理php cgi
location ~ \.(php|php3)$
{
fastcgi_pass 127.0.0.1:9001;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
#支持拖动的flv视频服务器,即支持aa.flv?start=10001
#可以使用jwplayer.swf来播放
#要支持拖动,视频还必须有关键帧信息,可使用yamdi来添加关键帧。
location ~ \.(flv)$
{
flv;
limit_rate_after 2m;
limit_rate 256k;
}
}
}
----------------------------------------------------
jwplayer5.x基本使用方法:
<object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="640" height="360">
<param name="movie" value="jwplayer5.x.swf" />
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="flashvars"
value="file=http://localhost:8088/test1.flv& streamer=start&image=images/test2.jpg&skin=skins/darksunset.zip&type=http" />
<embed
type="application/x-shockwave-flash"
id="player"
name="player"
src="jwplayer5.x.swf"
width="640"
height="360"
allowscriptaccess="always"
allowfullscreen="true"
flashvars="file=http://localhost:8088/test1.flv& streamer=start&image=images/test2.jpg&skin=skins/darksunset.zip&type=http" />
</object>
上一篇: 为Cygwin下的一些小程序设置代理服务器
下一篇: 用Apache和mod_flvx实现可拖动的FLV流媒体服务器
分类:Web开发 查看次数:5296 发布时间:2013/1/10 15:16:40