Modulo para grabaciones de Streaming en Wowza Streaming Engine

Installation


  1. Download wse-plugin-autorecord.zip.  
  2. Extract the contents from the downloaded (zipped) package, and then copy the lib/wse-plugin-autorecord.jar file from the package to the lib folder in your Wowza Streaming Engine installation ([install-dir]/lib).  
  3. Restart Wowza Streaming Engine.

Configuration


To enable this module, add the following module definition to your application configuration. See Configure modules for details.

NameDescriptionFully Qualified Class Name
ModuleAutoRecordAuto-record streams that are published to this application instance.com.wowza.wms.plugin.ModuleAutoRecord

Properties


After enabling the module, you can adjust the default settings by adding the following properties to your application. See Configure properties for details.

PathNameTypeValueNotes
/Root/Application/StreamRecorderstreamRecorderRecordAllStreamsBooleantrueStart a recorder for every stream that’s published to the application instance. This property can be overridden by the streamRecorderRecordType property. (default: true)
/Root/Application/StreamRecorderstreamRecorderAutoRecordDebugLogBooleantrueEnable debug logging for the module. Debug logging is also enabled for the main StreamRecorder debug logging (streamRecorderDebugEnable) or if logger debugging is enabled. (default: false)
/Root/Application/StreamRecorderstreamRecorderRecordTypeStringallowType of streams to record or how to interpret the streamRecorderStreamNames list. Valid values are:all – record all streams. Same as streamRecorderRecordAllStreamssource – record all source streamstranscoder – record all transcoder output streamsallow – record streams that match something the names listdeny – record streams that don’t match anything the names listnone – don’t automatically record any streams (default: all)
/Root/Application/StreamRecorderstreamRecorderStreamNamesStringmyStream|myOtherStreamPipe (|) or comma separated list of names to match. Can be a single wild card (*), complete names, regex match, wildcard prefix or wildcard suffix. (default: not set)
/Root/Application/StreamRecorderstreamRecorderStreamNamesDelimiterString~Delimiter chars used to separate the values in streamRecorderStreamNames property. (default: (\\||,) (regex for pipe or comma))

Usage


When the application is started, the module checks to see if the streamRecorderRecordAllStreams property is set to true (default) or if the streamRecorderRecordType property is set to all, and if so, it sets the Stream Recorder Manager to record all of the streams that are published to the application. Alternatively, streams are recorded based on the streamRecorderRecordType setting and if a match is found in the streamRecorderStreamNames list.

Each recorder that’s started uses the default StreamRecorder parameters that are configured for the application. These can be set using StreamRecorder properties. For more information, see Record live streams in Wowza Streaming Engine.

Codigo para Application.xml

            <StreamRecorder>
                    <Properties>
                            <Property>
                                    <Name>streamRecorderRecordAllStreams</Name>
                                    <Value>false</Value>
                                    <Type>Boolean</Type>
                            </Property>
                            <Property>
                                    <Name>streamRecorderRecordType</Name>
                                    <Value>allow</Value>
                                    <Type>String</Type>
                            </Property>
                            <Property>
                                    <Name>streamRecorderStreamNames</Name>
                                    <Value>STREAM NAME A GRABAR</Value>
                                    <Type>String</Type>
                            </Property>
                    </Properties>
            </StreamRecorder>