Skip to content

Commit 1bdba68

Browse files
committed
add clientid for notify
1 parent 355dbef commit 1bdba68

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

modules/nginx-rtmp-module/ngx_rtmp_oclp_module.c

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -738,13 +738,17 @@ ngx_rtmp_oclp_common_url(ngx_str_t *url, ngx_rtmp_session_t *s,
738738
buf = p;
739739

740740
if (ru.args.len) { // url already has args
741-
p = ngx_snprintf(buf, len, "&call=%s&act=%s&domain=%V&app=%V&name=%V",
741+
p = ngx_snprintf(buf, len,
742+
"&call=%s&act=%s&domain=%V&app=%V&name=%V&clientid=%D",
742743
ngx_rtmp_oclp_app_type[nctx->type],
743-
ngx_rtmp_oclp_stage[stage], &s->domain, &s->app, &s->name);
744+
ngx_rtmp_oclp_stage[stage],
745+
&s->domain, &s->app, &s->name, s->number);
744746
} else {
745-
p = ngx_snprintf(buf, len, "?call=%s&act=%s&domain=%V&app=%V&name=%V",
747+
p = ngx_snprintf(buf, len,
748+
"?call=%s&act=%s&domain=%V&app=%V&name=%V&clientid=%D",
746749
ngx_rtmp_oclp_app_type[nctx->type],
747-
ngx_rtmp_oclp_stage[stage], &s->domain, &s->app, &s->name);
750+
ngx_rtmp_oclp_stage[stage],
751+
&s->domain, &s->app, &s->name, s->number);
748752
}
749753
len -= p - buf;
750754
buf = p;

0 commit comments

Comments
 (0)