added SwfUrl to statistics

This commit is contained in:
Roman Arutyunyan 2012-06-29 15:29:18 +04:00
parent ae71903de4
commit 223b2713af
2 changed files with 8 additions and 0 deletions

View file

@ -327,6 +327,12 @@ ngx_rtmp_stat_live(ngx_http_request_t *r, ngx_chain_t ***lll,
NGX_RTMP_STAT_L("</pageurl>");
}
if (s->swf_url.len) {
NGX_RTMP_STAT_L("<swfurl>");
NGX_RTMP_STAT_ES(&s->swf_url);
NGX_RTMP_STAT_L("</swfurl>");
}
if (ctx->flags & NGX_RTMP_LIVE_PUBLISHING) {
NGX_RTMP_STAT_L("<publishing/>");
}

View file

@ -122,6 +122,7 @@
<th>Address</th>
<th>Flash version</th>
<th>Page URL</th>
<th>SWF URL</th>
<th>Dropped</th>
<th>A-V</th>
<th>Time</th>
@ -168,6 +169,7 @@
<xsl:value-of select="pageurl"/>
</a>
</td>
<td><xsl:value-of select="swfurl"/></td>
<td><xsl:value-of select="dropped"/></td>
<td><xsl:value-of select="avsync"/></td>
<td>