Wowza Community

HttpProvider request filters doesn't work properly

Hi,

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…:frowning:

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?

Thank you in advance! :slight_smile:

Hi,

Where did you place the custom HTTP listener? Is it above or below the Server Version HTTP listener?

Zoran

Hi

Support for displaying WebVTT thumbnials is buit into some players.

One such player is JW Player. They have their own support article on how to do this here.

The thumbnails must be stored and referenced on a Webserver, such as the webserver you are hosting the player from.

Daren

Hi,

Where did you place the custom HTTP listener? Is it above or below the Server Version HTTP listener?

Zoran

Hi any body i want to use VTT THUMBNAIL on vod but i dont know how to store Sprite Image? please help?

Sure. I put it above the provider with request filters “*”.

com.yshenWowza3.HttpProviders.CupertinoServer3

*initsystem|*masterplaylist|yshenmediaplaylist

none

Server_ID

127001

String

com.wowza.wms.http.HTTPCrossdomain

*crossdomain.xml

none

com.wowza.wms.http.HTTPClientAccessPolicy

*clientaccesspolicy.xml

none

com.wowza.wms.http.HTTPProviderMediaList

*jwplayer.rss|*jwplayer.smil|*medialist.smil|*manifest-rtmp.f4m

none

com.wowza.wms.timedtext.http.HTTPProviderCaptionFile

.ttml|.srt|.scc|.vtt

none

com.wowza.wms.http.HTTPServerVersion

*

none

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.