I'm attempting to write a custom module to track when the different adaptive streams are requested (both for Cupertino and SmoothStreaming). I've created a module that extends ModuleBase, and I'm focusing on the methods
The problem is that the documentation on these methods is sparse, if not non-existent. I cannot get any output to my log files from any statements I put in these methods, which leads me to believe that they aren't being called.
You do need to make sure you are running 4.1.0 at least for this to work. An example implementation would be
public void onHTTPSmoothStreamingStreamerRequest(HTTPStreamerSessionSmoothStreamer httpSession, HTTPStreamerSmoothStreamingRequestContext reqContext)
IHTTPRequest req = reqContext.getRequest();
Map<String, String> map = req.getHeaderMap();
// if the request is missing “my favorite header, reject the session
if (!map.containsKey("my favorite header"))
You will need to pull apart the request and headers to see what is being requested. You can also use the IVHostHTTPStreamerRequestValidator interface and a quick google did find some examples of implementing this.