Child pages
  • SB Content Resolver Plugin

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

SB

...

Content Resolver Plugin

Table of Contents
minLevel2

Description

Excerpt

This module translates Streams with DOMS UUID's into file names in the content directory.

Prerequisites

Requires Wowza 2.*. Tested on Wowza 2.2. 3
Requires BES. TODO: Version..6.2

Configuration

Configuring Wowza

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:

...

Code Block
[...]
<Modules>
    [...]
    <Module>
        <Name>Chaos-BES-Filemapping<_Content_Resolver</Name>
        <Description>Statsbiblioteket Chaos loggingcontent datebaseresolver module</Description>
        <Class>dk.statsbiblioteket.chaosmedieplatform.wowza.plugin.statistic.StatisticLoggingSBModuleBase<ContentResolverModule</Class>
    </Module>
</Modules>
[...]

Configuring plugin

Configuration is read from the file 'conf/chaos/chaos-streaming-server-pluginwowza-modules.properties' relative to the VHost path of the plugin (see Installation)

The following keys are used:

Code Block
GeneralBESServerURL=http://iapetus:9311/bes_DEVEL_EXTRACTION/rest/bes/
# 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

Configuring logging

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.

Installation

Assuming a Wowza server installed in $WOWZADIR configured with a toplevel directory for a VHost called $VHOSTDIR, the following is needed:

...

(To use an external VHost dir, follow the instructions from from http://www.wowza.com/resources/WowzaMediaServer-2.2.4_UsersGuide.pdf section "Virtual Hosting")

Testing

In a browser, open the URL

file:///usr/local/WowzaMediaServer-3.6.2/examples/SimpleVideoStreamingVideoOnDemandStreaming/clientFlashRTMPPlayer/simplevideostreamingplayer.html

(replace /usr/local/WowzaMediaServer-3.6.2 with $WOWZADIR)

At server, type
rtmp://localhost/chaos
At stream, type mp3:uuid:<doms-uuid>.mp3

...