I am writing a plugin to return status: 404 for a non published cuppertino live stream.
If I use the above setUserHTTPHeader method, it doesn't override the status. The call gets forwarded down to:
public void onHTTPSessionCreate(IHTTPStreamerSession httpSession)
The response is still Status 200 with a playlist (and then empty chunklist).
HTTPStreamerAdapterCupertinoStreamer.onPlaylist: Stream not found [live/myStream/playlist.m3u8]: myStream
If I actually use rejectSession(), I get a Status 403 response (even if i use setuserhttpstatus beforehand). Is there any way to override this to a 404?
I also tried:
To no avail, the status returned is still 403.
(I omitted most of the function logic, these are the lines that should change wowza, the rest is just listing publishedStreamNames and matching it to the requested stream name).