I need to rewrite responses to all HTTP requests coming in to a particular Vhost. Specifically, I need to redirect requests for HLS and SmoothStreaming
I’ve written a class that extends HTTProvider2Base, and added the HTTPProvider to my Vhost.xml
Everything works fine if .m3u8 or /Manifest is not present in the request url, but if they are, it seems the HTTP provider is not invoked
For example, the following works as expected:
h**p://[server-ip]/application/instance/streamname/playlist?var1=foo&var2=bar
… but the following just returns the same output as would be if the HTTP provider was not implemented:
h**p://[server-ip]/application/instance/streamname/playlist.m3u8?var1=foo&var2=bar
h**p://[server-ip]/application/instance/streamname/Manifest?var1=foo&var2=bar
What do I need to do to allow my HTTPProvider to handle .m3u8 and Manifest requests?
Thanks.