Skip to content

Commit dcc5992

Browse files
author
luowei
committed
修下了通过auth.php验证的index.html页面直播地址..
1 parent ef54081 commit dcc5992

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

conf/conf.d/rtmp4.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ rtmp{
2525
deny publish all;
2626

2727
allow play 192.168.0.0/24;
28+
allow play 127.0.0.1;
2829
deny play all;
2930
live on;
3031
meta copy;

html/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ <h1>Welcome to nginx!</h1>
2121
jwplayer("myElement").setup({
2222
//file: "/media/a.mp4",
2323
//image: "/media/a.jpg"
24-
file:"rtmp://127.0.0.1/live/flv:test",
24+
file:"rtmp://127.0.0.1/live2/flv:test2",
2525
height:480,
2626
width:720
2727
});

0 commit comments

Comments
 (0)