sul-dlss/dlss-wowza

Name: dlss-wowza

Owner: Stanford University Digital Library

Description: Wowza server side modules.

Created: 2016-05-02 17:53:19.0

Updated: 2016-05-02 21:42:14.0

Pushed: 2016-12-16 13:04:34.0

Homepage: null

Size: 68086

Language: Java

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Build Status Coverage Status GitHub version

dlss-wowza

Wowza server side modules. Uses Gradle (with the Gradle wrapper) as the build tool (akin to Ruby's rake).

To compile and run tests of this code:

./gradlew build

Before running this command, you'll need to set these environment variables:

If the environment variables are not set, your tests will fail.

Using the SulWowza plugin
Adding the SulWowza plugin to your Wowza Application

In the Wowza GUI interface, select your Wowza Application, and click on the modules tab. Add a module with the class name edu.stanford.dlss.wowza.SulWowza (the name and description are arbitrary strings).

Alternatively, you can manually edit Application.xml and then reload the Wowza application. The <Modules> element in Application.xml should include something like this:

odule>
<Name>SulWowza</Name>
<Description>SUL Authorization against Stacks</Description>
<Class>edu.stanford.dlss.wowza.SulWowza</Class>
Module>
Properties settings used by SulWowza plugin

You can configure the SulWowza plugin using Wowza's GUI interface, but you will also need to add some properties.The three properties our SulWowza plugin uses are:

You can add these properties using the Wowza GUI interface: select your Wowza application, click on the properties tab; scroll to the bottom for custom properties and add them.

Alternatively, you can manually edit Application.xml and then reload the Wowza application. The <Properties> element in Application.xml should include something like this:

roperty>
<!-- stacks token verification baseURL -->
<Name>stacksURL</Name>
<Value>https://stacks-test.stanford.edu</Value>
Property>
roperty>
<!-- stacks service connection timeout (time to establish a connection), in seconds; default is 30 -->
<Name>stacksConnectionTimeout</Name>
<Value>20</Value>
<Type>Integer</Type>
Property>
roperty>
<!-- stacks service connection timeout (time for reading stream after connection is established),
  in seconds; default is 30 -->
<Name>stacksReadTimeout</Name>
<Value>20</Value>
<Type>Integer</Type>
Property>
To deploy a new version of the plugin code to the VM:
To deploy locally (e.g. on dev laptop)
To see Gradle tasks

./gradlew tasks

For help with Gradle

./gradlew –help

Deprecated build instructions (possibly useful for troubleshooting, eventually remove?)
To manually compile
c -d classes -cp .:libs/wms-restlet-2.2.2.jar:libs/wms-server.jar:libs/wms-httpstreamer-cupertinostreaming.jar:libs/wms-httpstreamer-mpegdashstreaming.jar:libs/log4j-1.2.17.jar:libs/junit.jar src/edu/stanford/dlss/wowza/SulWowza.java src/edu/stanford/dlss/wowza/SulWowzaTester.java
To manually create jar
cf dlss-wowza.jar classes/edu/stanford/dlss/wowza/SulWowza* conf

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.