sergey-dryabzhinsky / nginx-rtmp-module

NGINX-based Media Streaming Server
http://nginx-rtmp.blogspot.com
BSD 2-Clause "Simplified" License
1.02k stars 217 forks source link

on_publish triggering if already publishing #321

Open mkrn opened 3 years ago

mkrn commented 3 years ago

Config:

application live {
   drop_idle_publisher 15s;
   idle_streams off;
   on_publish http://localhost/on_start;
   on_publish_done http://localhost/on_end;
}

If stream key is already publishing module outputs: 2020/10/30 14:29:30 [error] 17218#0: *2049366 live: already publishing, client: xxx.xxx..xx.xxx, server: 0.0.0.0:1935

However, on_publish callback still executed and if redirect returned, the stream is published to remote relay. Can it be avoided?