JasonRivers / Docker-nginx-rtmp

Docker Image for RTMP streams using Nginx
181 stars 114 forks source link

notify clients when publisher stopped broadcasting #14

Open shaulfl opened 6 years ago

shaulfl commented 6 years ago

In my use case I'm using ngnix-rtmp as rtmp proxy. When rtmp publisher disconnects, ffmpeg rtmp subscribers hangs indefinitely, and manually closing ffmpeg causes file corruption. This pull request resolves this issue by notifying client on publish/unpublish and handle it accordingly so ffmpeg exits gracefully.

JasonRivers commented 6 years ago

Thanks for this! However, in your PR you have disabled HLS, HLS is a large part of what's used on this image, Please could you remove disabling HLS and then I can merge this in.