正在显示
1 个修改的文件
包含
5 行增加
和
6 行删除
| @@ -261,11 +261,8 @@ if [ $SRS_HLS = YES ]; then | @@ -261,11 +261,8 @@ if [ $SRS_HLS = YES ]; then | ||
| 261 | ln -sf `pwd`/research/players/crossdomain.xml ${SRS_OBJS}/nginx/html/crossdomain.xml | 261 | ln -sf `pwd`/research/players/crossdomain.xml ${SRS_OBJS}/nginx/html/crossdomain.xml |
| 262 | 262 | ||
| 263 | # override the default index. | 263 | # override the default index. |
| 264 | - cat <<END > ${SRS_OBJS}/nginx/html/index.html | ||
| 265 | - <script type="text/javascript"> | ||
| 266 | - window.location.href = "players/index.html"; | ||
| 267 | - </script> | ||
| 268 | -END | 264 | + rm -f ${SRS_OBJS}/nginx/html/index.html && |
| 265 | + ln -sf `pwd`/research/players/nginx_index.html ${SRS_OBJS}/nginx/html/index.html | ||
| 269 | fi | 266 | fi |
| 270 | 267 | ||
| 271 | if [ $SRS_HLS = YES ]; then | 268 | if [ $SRS_HLS = YES ]; then |
| @@ -302,7 +299,9 @@ fi | @@ -302,7 +299,9 @@ fi | ||
| 302 | 299 | ||
| 303 | echo "link players to cherrypy static-dir" | 300 | echo "link players to cherrypy static-dir" |
| 304 | rm -f research/api-server/static-dir/players && | 301 | rm -f research/api-server/static-dir/players && |
| 305 | -ln -sf `pwd`/research/players research/api-server/static-dir/players | 302 | +ln -sf `pwd`/research/players research/api-server/static-dir/players && |
| 303 | +rm -f research/api-server/static-dir/crossdomain.xml && | ||
| 304 | +ln -sf `pwd`/research/players/crossdomain.xml research/api-server/static-dir/crossdomain.xml | ||
| 306 | 305 | ||
| 307 | ##################################################################################### | 306 | ##################################################################################### |
| 308 | # openssl, for rtmp complex handshake | 307 | # openssl, for rtmp complex handshake |
-
请 注册 或 登录 后发表评论