By default
nginx-rtmp allows subscribers to connect to any (even nonexistent) stream within application. You can connect to a stream with no publisher in it. When publisher disconnects all subscribers remain connected. That can be controlled with
on_play and
on_update HTTP notifications. The most recent version of nginx-rtmp has one more way to limit subscribers in idle streams.
The new directive is
idle_streams. Default value
on is consistent with the current behavior. If turned
off subscribers will not be able to connect to idle (not published to) streams and will be disconnected when stream publisher disconnects.
application live {
live on;
idle_streams off;
}
Hi,
ReplyDeleteThank for your great work. I use idle_streams off; with pull. Then we can't watch any live video.
Thank.
All subscribers are disconnect after few minutes play;-( idle_streams off; nginx-rtmp-module 1.0.6, nginx 1.5.6, do u know why ?
ReplyDeleteIf I remove idle_streams off; fron conf everything back normal
What about the publisher? Please post debug log.
Deletei have that same effect. nginx-1.4.2
ReplyDeleteI am on 1.5. As the publisher, the stream does disconnect when I stop broadcasting (as it should); however, those watching my live stream are disconnecting every few minutes -- turning idle_streams on fixes this for my viewers.
ReplyDeleteFixed. Please try again.
ReplyDeleteGreat work. I've waited for this implementation.
ReplyDeleteJSTOR LTD, SBOBET- SBOBET, INDIA - JTA Hub
ReplyDeleteJSTOR LIMITED, SBOBET- SBOBET, INDIA. JSTOR LIMITED, 부산광역 출장샵 SBOBET- 군포 출장샵 INDIA. JSTOR LIMITED. JSTOR 경기도 출장마사지 LIMITED, SBOBET- 수원 출장샵 INDIA. JSTOR 이천 출장샵