mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-05-12 07:11:08 +02:00
added NetStream.Unpublish.Success
This commit is contained in:
parent
d7b4f138a4
commit
c11b916501
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue