Wowza Community

Status errors for HLS Live Streaming

Hi,

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 :

sendStreamOnStatusError(stream, "NetStream.Play.Failed", "Too many viewer");
client.shutdownClient();

But for HLS, I only found :

httpCupertinoStreamingSession.rejectSession();

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?

Thanks

To achieve a similar effect to sendStreamOnStatusError, you’d have to redirect to an error page.