mirror of
https://github.com/arut/nginx-rtmp-module.git
synced 2025-08-06 15:00:18 +08:00
added NetStream.Unpublish.Success
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user