implemented wait_key

This commit is contained in:
Roman Arutyunyan
2012-10-27 20:47:35 +04:00
parent 284e521e82
commit e178a42c63
3 changed files with 109 additions and 46 deletions

View File

@ -309,11 +309,16 @@ ngx_rtmp_stat_live(ngx_http_request_t *r, ngx_chain_t ***lll,
"%uz", ctx->dropped) - buf);
NGX_RTMP_STAT_L("</dropped>");
/*NGX_RTMP_STAT_L("<avsync>");
NGX_RTMP_STAT(buf, ngx_snprintf(buf, sizeof(buf),
"%L", (int64_t)ctx->last_audio
- ctx->last_video) - buf);
NGX_RTMP_STAT_L("</avsync>");*/
if (ctx->cs[0].active && ctx->cs[1].active) {
NGX_RTMP_STAT_L("<avsync>");
NGX_RTMP_STAT(buf, ngx_snprintf(buf, sizeof(buf),
"%L", (int64_t) ctx->cs[0].timestamp -
(int64_t) ctx->cs[1].timestamp) - buf);
NGX_RTMP_STAT_L("</avsync>");
}
if (s->flashver.len) {
NGX_RTMP_STAT_L("<flashver>");