Wowza Media Server 3.5 Examples: Live Stream Record Example Module


The Live Stream Record API provides methods for starting and stopping recording of live streams.

This package includes an application module for Wowza Media Server 3.5 that can be controlled with the Adobe® Flash application that's included in the [package]/client folder.

Source code for the application module and Flash client is included in this package. You are free to use and modify these examples. The Javadoc documentation for the Live Stream Record APIs is included in the Wowza Media Server server-side API documentation under the LiveStreamRecord.model package

The Live Stream Record API can record in two formats: FLV and MP4 (QuickTime container). The following are additional settings:

You can set the above record options in the Flash application or they can be set and modified in the source for the application module.

Note: Wowza Media Server® 3.5 or later is required.
Note: The live stream that you want to record must be up-and-running.

Install Application Module

  1. Copy the file lib/wms-plugin-wms-plugin-livestreamrecordexamplemodule_3.5.jar from this package to the Wowza Media Server installation folder [install-dir]/lib/.

  2. Open [install-dir]/conf/[application]/Application.xml in a text editor and add the following module item as the last item in the <Modules> list:
    <Module>
    	<Name>ModuleLiveStreamRecord</Name>
    	<Description>ModuleLiveStreamRecord</Description>
    	<Class>com.wowza.wms.plugin.livestreamrecord.module.ModuleLiveStreamRecord</Class>
    </Module>

Run using Flash client

Double-click [package]/client/LiveStreamRecord.html and change the Server and Stream fields to the RTMP URL and stream name of your live stream, then click the Play button. After the live stream begins playing, click the Start Recording button to start recording the stream. When you want to stop recording the stream, click the Stop Recording button.


Notes