added NetStream.Unpublish.Success

This commit is contained in:
Roman Arutyunyan 2013-08-01 12:33:02 +04:00
parent d7b4f138a4
commit c11b916501
2 changed files with 6 additions and 1 deletions

View file

@ -276,7 +276,7 @@ ngx_rtmp_recv(ngx_event_t *rev)
s->in_last_ack = s->in_bytes;
ngx_log_debug1(NGX_LOG_DEBUG_RTMP, c->log, 0,
"sending RTMP ACK(%D)", s->in_bytes);
"sending RTMP ACK(%uD)", s->in_bytes);
if (ngx_rtmp_send_ack(s, s->in_bytes)) {
ngx_rtmp_finalize_session(s);

View file

@ -615,6 +615,11 @@ ngx_rtmp_live_close_stream(ngx_rtmp_session_t *s, ngx_rtmp_close_stream_t *v)
ngx_rtmp_send_status(s, "NetStream.Play.Stop", "status", "Stop live");
}
if (ctx->publishing) {
ngx_rtmp_send_status(s, "NetStream.Unpublish.Success",
"status", "Stop publishing");
}
next:
return next_close_stream(s, v);
}