How to specify recorder listener notification in REST API startRecord request

Hello,

I am trying to record live stream with REST API query like in the article:

https://www.wowza.com/docs/stream-recording-query-examples

Everything is working fine. I can start and stop recording by POST/GET requests with JSON parameters. But I need some custom logic for the process: insert/update data in my database on file segment start/end.

Is there a parameter in POST request which specifies custom IStreamRecorderActionNotify interface like in a ServerSide API and what is its name?

WSE 4.7.7

My current POST request:

  1. Command
http://192.168.1.51:18087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/rtp-live-iot/instances/_definst_/streamrecorders/b61ddc3f-82b0-4903-8007-fc05d3396438
  1. Data
{
	"instanceName": "_definst_",
	"fileVersionDelegateName": "com.wowza.wms.livestreamrecord.manager.StreamRecorderFileVersionDelegate",
	"serverName": "",
	"recorderName": "b61ddc3f-82b0-4903-8007-fc05d3396438",
	"segmentSchedule": "",
	"outputPath": "",
	"currentFile": "",
	"applicationName": "rtp-live-iot",
	"fileTemplate": "${SourceStreamName}_${RecordingStartTime}_${SegmentNumber}",
	"segmentationType": "SegmentByDuration",
	"fileFormat": "MP4",
	"recorderState": "",
	"option": "",
	"currentSize": "0",
	"segmentSize": "0",
	"segmentDuration": "1800000",
	"backBufferTime": "0",
	"currentDuration": "0",
	"startOnKeyFrame": "true",
	"recordData": "false",
	"moveFirstVideoFrameToZero": "true",
	"defaultRecorder": "false",
	"splitOnTcDiscontinuity": "false"
}

With respect,

Sergey

Hey, anybody? Wowza developers, why are you silent? Please, please answer my question. This is very urgent for me.

You can set this a property in your Application.xml, but it is not settable with the RESTAPI

streamRecorderNotifyListener

It is a string and should go in the StreamRecorder section of the Application.xml. The value should be the name of your Notify class.

Example

<Property>
	<Name>streamRecorderNotifyListener</Name>
	<Value>com.wowza.recorder.myNotifyClass</Value>
	<Type>String</Type>
</Property>