From 876de488b83fb0324ec0d2743059c868ab76dd47 Mon Sep 17 00:00:00 2001 From: Roman Arutyunyan Date: Wed, 5 Mar 2014 11:34:33 +0400 Subject: [PATCH] added epoch argument to on_connect --- ngx_rtmp_notify_module.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ngx_rtmp_notify_module.c b/ngx_rtmp_notify_module.c index 3829ae0..2fcfffb 100644 --- a/ngx_rtmp_notify_module.c +++ b/ngx_rtmp_notify_module.c @@ -390,6 +390,7 @@ ngx_rtmp_notify_connect_create(ngx_rtmp_session_t *s, void *arg, sizeof("&tcurl=") - 1 + tc_url_len * 3 + sizeof("&pageurl=") - 1 + page_url_len * 3 + sizeof("&addr=") - 1 + addr_text->len * 3 + + sizeof("&epoch=") - 1 + NGX_INT32_LEN + 1 + args_len ); @@ -428,6 +429,9 @@ ngx_rtmp_notify_connect_create(ngx_rtmp_session_t *s, void *arg, b->last = (u_char*) ngx_escape_uri(b->last, addr_text->data, addr_text->len, NGX_ESCAPE_ARGS); + b->last = ngx_cpymem(b->last, (u_char*) "&epoch=", sizeof("&epoch=") -1); + b->last = ngx_sprintf(b->last, "%uD", (uint32_t) s->epoch); + b->last = ngx_cpymem(b->last, (u_char*) "&call=connect", sizeof("&call=connect") - 1);