# Using REST Apis to make stream name

**URL:** https://community.wowza.com/t/using-rest-apis-to-make-stream-name/47889
**Category:** Wowza Streaming Engine
**Created:** [January 17, 2017, 7:01pm UTC](https://community.wowza.com/t/using-rest-apis-to-make-stream-name/47889 "2017-01-17T19:01:19Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Dilawer\_Hussain](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@Dilawer\_Hussain](https://community.wowza.com/u/Dilawer_Hussain)
#### Post date: [January 17, 2017, 7:01pm UTC](https://community.wowza.com/t/using-rest-apis-to-make-stream-name/47889/1 "2017-01-17T19:01:19Z")

</div>

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](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](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

---

<div class="post-metadata">

### Author: ![Jason\_Hatchett](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hatchett/32/391_2.png) [@Jason\_Hatchett](https://community.wowza.com/u/Jason_Hatchett)
#### Post date: [May 17, 2017, 11:14am UTC](https://community.wowza.com/t/using-rest-apis-to-make-stream-name/47889/2 "2017-05-17T11:14:06Z")

</div>

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](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
