nginx-http-flv-module
nginx-http-flv-module copied to clipboard
[bug] on_publish回调参数的问题
Expected behavior / 期望行为
on_publish 可以返回自定义参数
Actual behavior / 实际行为
on_publish只能返回默认的几个参数
{
"app": String,
"swfurl": String,
"tcurl": String,
"pageurl": String,
"addr": String,
"clientid": String,
"call": String,
"name":String
}
OS and Nginx version / 操作系统和 Nginx 版本号
Debian GNU/Linux 10
nginx version: nginx/1.18.0
Configuration file / 配置文件
rtmp {
out_queue 4096;
out_cork 8;
max_streams 128;
timeout 15s;
drop_idle_publisher 15s;
server {
listen 1935;
application hls {
live on;
publish_notify on;
on_publish http://127.0.0.1:35602/auth;
hls on;
hls_path /data/wwwroot/hls;
}
}
}
Steps to reproduce the behavior / 复现问题步骤
在server层使用on_connect url的话,是可以返回自定义参数的,比如向rtmp://url:1935/hls?pass=123,后端验证可以接收到POST来的
{
"pass":123
}
但是在application使用on_publish无法接收到自定义的参数