java视频播放网站小结
一、流媒体播放器安装。
二、前台播放器flash插件。
三、视频转码,加水印。
一首先流媒体播放器安装。
这里使用的是nginx作为流媒体服务器。
配置nginx\conf\nginx.conf
其中root html表示 nginx\html 为视频存储路径。
server {
listen 80;
server_name 192.168.1.12;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root html;
index index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location ~ \.flv {
flv;
}
location ~ \.mp4 {
mp4;
}
} 使用命令 start nginx启动流媒体服务。