Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] on_publish回调参数的问题 #193

Open
cokemine opened this issue Jan 28, 2021 · 0 comments
Open

[bug] on_publish回调参数的问题 #193

cokemine opened this issue Jan 28, 2021 · 0 comments

Comments

@cokemine
Copy link

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无法接收到自定义的参数

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant