Wowza Community

Using REST Apis to make stream name

Hi Guys,

I am using REST apis to make a streamname from the app, and start recording on the created streamname

I am using this api http://localhost:8087/v2/servers/defaultServer/vhosts/defaultVHost/applications/TVC/instances/definst/streamrecorders with the following parameters

{

“recorderName”:“testStream”,

“instanceName”:“definst”,

“segmentationType”:“None”,

“outputPath”:"",

“baseFile”:“myrecord2.mp4”,

“fileFormat”:“MP4”,

“fileVersionDelegateName”:“com.wowza.wms.livestreamrecord.manager.StreamRecorderFileVersionDelegate”,

“fileTemplate”:"${BaseFileName}${RecordingStartTime}${SegmentNumber}",

“segmentDuration”:900000,

“segmentSize”:10485760,

“segmentSchedule”:“0 * * * * *”,

“recordData”:true,

“startOnKeyFrame”:true,

“splitOnTcDiscontinuity”:false,

“backBufferTime”:3000,

“option”:“Version existing file”,

“moveFirstVideoFrameToZero”:true,

“currentSize”:0,

“currentDuration”:0,

“recordingStartTime”:""

}

It created the streamname which is good. Please see this image https://cloudup.com/cqH2wVfP6_b “testStream” is the streamname I created with this REST api. But there are few issues

  1. It created as by default in recording state, I dont need that by default so that I can start streaming from the app when I want to

  2. It also made the recording saved in a file, I want to start live streaming without recording and with recording but one of the case at a time

Please let me know what params I need to send to fulfill my above 2 needs.

Thanks in advance.

Best Regards,

Dilawer Hussain

Hello Dilawer,

This REST-API call is giving you the expected outcome, to prevent this from starting before the broadcast, it should be called at the time it is to be activated.

If I am reading your requests correctly for #2 the following examples should help you achieve your streaming with out a recording scenario:
https://www.wowza.com/docs/live-sources-query-examples

Your existing cal that you have posted is best to be triggered at the time that you want the recording started, and not before hand.

I do hope this helps.

Regards,

Jason Hatchett