SB Content Resolver Plugin
DescriptionThis module translates Streams with DOMS UUID's into file names in the content directory.
Tested on Wowza 4.0.3
Configuration is done in the file 'conf/chaos/Application.xml' relative to the VHost path of the plugin (see Installation).
The file is based on 'examples/SimpleVideoStreaming/conf/vod/Application.xml' from the Wowza system directory. It must be updated with the following step:
Add the DOMS streaming module
[...] <Modules> [...] <Module> <Name>Chaos_Content_Resolver</Name> <Description>Statsbiblioteket Chaos content resolver module</Description> <Class>dk.statsbiblioteket.medieplatform.wowza.plugin.ContentResolverModule</Class> </Module> </Modules> [...]
Configuration is read from the file 'conf/chaos/wowza-modules.properties' relative to the VHost path of the plugin (see Installation)
The following keys are used:
# Number of characters to use for splitting content into directories. Example: if this is 2, the file # "hello.txt" will be in the path "h/e/hello.txt characterDirs=4 # Pattern used for turning the content id into a file name. %s is replaced with the content id. filenameRegexPattern=%s\\.(flv|mp3) # Type used by ticket checker and content resolver for identifying content presentationType=Stream
Logging is done at VHost level. Edit the file 'conf/log4j.properties' relative to the VHost path of the plugin (see Installation) to set the desired log levels.
Assuming a Wowza server installed in $WOWZADIR configured with a toplevel directory for a VHost called $VHOSTDIR, the following is needed:
Add the distributed JAR files to $VHOSTDIR/applications/lib
Create the directory $VHOSTDIR/conf/chaos
Place the configuration file in $VHOSTDIR/conf/chaos/chaos-streaming-server-plugin.properties
Place the application file in $VHOSTDIR/conf/chaos/Application.xml
Create the directory $VHOSTDIR/applications/chaos
(To use an external VHost dir, follow the instructions from http://www.wowza.com/resources/WowzaStreamingEngine_UsersGuide.pdf section "Virtual Hosting")
In a browser, open the URL
(replace /usr/local/WowzaStreamingEngine with $WOWZADIR)
At server, type
At stream, type mp3:uuid:<doms-uuid>.mp3
Assuming that file for that uuid is available in the content directory of the VHost, the file should now start playing.