I wrote an httpprovider to generate media playlist. However Wowza server doesn’t invoke my http provider according to the request filter in VHost.Xml; Below is part of my Vhost.xml file. If a client sends a request like "http://xxx/myStream/yshenmediaplaylist_bandwidth_64000bit?serverid=xxx&username=xxx; This request should be handled by my own httpprovider.
com.yshenWowza3.HttpProviders.CupertinoServer3
yshenmediaplaylist
none
However, in the debug mode, no break points is triggered. Instead, the wowza server returns the version info…
In addition, if the client request is like “http://xxx/myStream/yshenmediaplaylist* (ends with '’); The request will go to my http provider. So weird… can I put only one "” in the filter?
By the way, I found that if the request URL ends with “.m3u8” Wowza will just return the master playlist without invoking my HTTP Providers at all, even if I set request filters in VHost.Xml. I want the request to be processed by my own functions so that I can return customized playlists to the clients.
I found the answer myself. By default, all the incoming requests ending with “.m3u8, m3u, aac, mp3,ts” will be directly processed by Wowza built-in class, without going to custom http providers or modules. To change this default behavior, we have to modify the file Wowza_dir/conf/HTTPStreamers.xml. The file is quite self-explanatory. If you couldn’t find this file. Just download one from Internet and copy it to conf/ folder.