From 223b2713affc348d02a666ebe384a8228ce9d6a7 Mon Sep 17 00:00:00 2001 From: Roman Arutyunyan Date: Fri, 29 Jun 2012 15:29:18 +0400 Subject: [PATCH] added SwfUrl to statistics --- ngx_rtmp_stat_module.c | 6 ++++++ stat.xsl | 2 ++ 2 files changed, 8 insertions(+) diff --git a/ngx_rtmp_stat_module.c b/ngx_rtmp_stat_module.c index d889eba..944592b 100644 --- a/ngx_rtmp_stat_module.c +++ b/ngx_rtmp_stat_module.c @@ -327,6 +327,12 @@ ngx_rtmp_stat_live(ngx_http_request_t *r, ngx_chain_t ***lll, NGX_RTMP_STAT_L(""); } + if (s->swf_url.len) { + NGX_RTMP_STAT_L(""); + NGX_RTMP_STAT_ES(&s->swf_url); + NGX_RTMP_STAT_L(""); + } + if (ctx->flags & NGX_RTMP_LIVE_PUBLISHING) { NGX_RTMP_STAT_L(""); } diff --git a/stat.xsl b/stat.xsl index 59432db..0862a32 100644 --- a/stat.xsl +++ b/stat.xsl @@ -122,6 +122,7 @@ Address Flash version Page URL + SWF URL Dropped A-V Time @@ -168,6 +169,7 @@ +