I came here because something is bothering me for a while with HLS.
Sometimes, I need to refused some viewers from the live stream (bad referer, ip, ...) however there we have an issue telling the client in a nice way they have been disconnected
For RTMP customers, I'm already using :
But for HLS, I only found :
sendStreamOnStatusError(stream, "NetStream.Play.Failed", "Too many viewer");
This function works great to refuse connections, but I don't find any way to send informations/status with it.
What is the recommendation in a case like this?