Wowza Media Systems

Wowza Media Server Pro: FileRandomAccessReader

Description

The RandomAccessReaders interface is a pluggable interface between the media asset readers and the media asset storage system. The Wowza Media Pro server uses this interface to obtain media asset data and property information. Configuration for RandomAccessReaders can be done at the VHost level (for an entire virtual host) or at the application level (on an application by application basis). The details on configuration are covered below.

Instructions

RandomAccessReaders are Java classes that conform to the com.wowza.io.IRandomAccessReader interface. The src folder of this package includes a simple RandomAccessReader that reads the media contents from a web server. The content is cached in the background to the local file system. This example is not a finished piece of code. It only serves as an example of a simple method for streaming content from a source other than the file system. To use this sample code first compile this classes, bind them into a jar file using the Wowza IDE and make sure the .jar file gets deployed to the lib folder of the server.

This example includes one example RandomAccessReader implementation that highlight how to read from the file system.

To configure your RandomAccessReader so that it is used at the application level, edit [install-dir]/conf/[application]/Application.xml and add the following two properties to the MediaReader section.


<Property>
	<Name>randomAccessReaderClass</Name>
	<Value>com.wowza.wms.plugin.randomaccessreader.file.FileRandomAccessReader</Value>
</Property>
<Property>
	<Name>bufferSeekIO</Name>
	<Value>false</Value>
	<Type>Boolean</Type>
</Property>

To configure your RandomAccessReader so that it is used at the vhost level, edit [install-dir]/conf/MediaReaders.xml and add the same two properties to each of the properties sections of each of each of the MediaReader definitions (at some point we will enable global property setting for MediaReaders).

Note: This example require Wowza Media Server Pro 1.5.3 patch33 or greater