我原来的流名称是7a0938b1a5e64c5597f959610cb219c9。我想将我的流名称更改为testchannel1调用后on_publish。但在hls_path蒸汽名称中仍然和以前一样。如何更改我的配置文件以实现它。
nginx配置文件
application myapp {
on_publish http://192.168.50.98:8080/auth/on_publish;
on_publish_done http://192.168.50.98:8080/auth/live/on_connect;
live on;
hls on;
hls_path /usr/share/nginx/html/live;
hls_nested on;
hls_fragment 2s;
hls_playlist_length 6s;
hls_fragment_naming system;
}
Run Code Online (Sandbox Code Playgroud)
HTTP 请求参数
app: myapp
flashver: FMLE/3.0 (compatible; FMSc/1.0)
swfurl: rtmp://vm1.mysite.com/myapp
tcurl: rtmp://vm1.mysite.com/myapp
pageurl:
addr: 192.168.50.98
clientid: 7
call: publish
name: 7a0938b1a5e64c5597f959610cb219c9
type: live
Run Code Online (Sandbox Code Playgroud)
HTTP 响应头
HTTP/1.1 302
Location: testchannel1
Content-Length: 0
Date: Sun, 23 Apr 2017 05:54:23 GMT
Run Code Online (Sandbox Code Playgroud)
hls路径
[root@localhost live]# pwd
/usr/share/nginx/html/live
[root@localhost live]# ls
7a0938b1a5e64c5597f959610cb219c9 nginx_error.log …Run Code Online (Sandbox Code Playgroud)