# Live Stream Recorder

**URL:** <https://community.wowza.com/t/live-stream-recorder/34162>\
**Category:** Wowza Streaming Engine\
**Created:** [September 25, 2014, 4:38pm UTC](https://community.wowza.com/t/live-stream-recorder/34162 "2014-09-25T16:38:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vijay\_J](https://avatars.discourse-cdn.com/v4/letter/v/d78d45/32.png) [@Vijay\_J](https://community.wowza.com/u/Vijay_J)\
**Post date:** [September 25, 2014, 4:38pm UTC](https://community.wowza.com/t/live-stream-recorder/34162/1 "2014-09-25T16:38:55Z")

</div>

Hi,

We’re evaluating the Live Stream Recorder and are using the example modules listed in [https://www.wowza.com/docs/how-to-start-and-stop-live-stream-recordings-programmatically-livestreamrecordautorecord-example](https://www.wowza.com/docs/how-to-start-and-stop-live-stream-recordings-programmatically-livestreamrecordautorecord-example) to run some tests. In ModuleAutoRecordAdvancedExample.java, setting recordParams.recordData to false instead of true (line 146) still triggers a recording. We’d like to set the recording to true only for certain streams but it appears that this param is being ignored. Is this a know issue? Or should we be using another param? We’re running Wowza 4.0.6.

Thanks.

---

<div class="post-metadata">

**Author:** ![Emre\_Karatasoglu\_Adv](https://avatars.discourse-cdn.com/v4/letter/e/0ea827/32.png) [@Emre\_Karatasoglu\_Adv](https://community.wowza.com/u/Emre_Karatasoglu_Adv)\
**Post date:** [September 26, 2014, 7:48am UTC](https://community.wowza.com/t/live-stream-recorder/34162/2 "2014-09-26T07:48:28Z")

</div>

Hi,vjagannathan . I’ll test the code asap .While quick viewing the code without running , record params can be taken from properties and after

that you can use sth like that

> recordParams.recordData = true (or false);
> 
> if(recordParams.recordData)
> 
> vhost.getLiveStreamRecordManager().startRecording(appInstance, recordParams);

Did you check the application.xml

what is your streamtype ?

> live

or

> live-record

Do you use nDvr addon ?

Regards,

Emre Karataşoğlu

---

<div class="post-metadata">

**Author:** ![Vijay\_J](https://avatars.discourse-cdn.com/v4/letter/v/d78d45/32.png) [@Vijay\_J](https://community.wowza.com/u/Vijay_J)\
**Post date:** [September 26, 2014, 11:48am UTC](https://community.wowza.com/t/live-stream-recorder/34162/3 "2014-09-26T11:48:57Z")

</div>

Hi Emre,

The code snippet that you pasted won’t work for us since the stream details wouldn’t be present during onAppStart. We were instead hoping to set the recordData param to true inside the onCreateRecorder() method on a stream-by-stream basis.

The StreamType we’re using is liverepeater-origin since we use the origin-edge configuration.

We are using the nDVR add but not for this application. This is for regular live streams.

---

<div class="post-metadata">

**Author:** ![Vijay\_J](https://avatars.discourse-cdn.com/v4/letter/v/d78d45/32.png) [@Vijay\_J](https://community.wowza.com/u/Vijay_J)\
**Post date:** [September 26, 2014, 4:07pm UTC](https://community.wowza.com/t/live-stream-recorder/34162/4 "2014-09-26T16:07:34Z")

</div>

Done.

---

<div class="post-metadata">

**Author:** ![Emre\_Karatasoglu\_Adv](https://avatars.discourse-cdn.com/v4/letter/e/0ea827/32.png) [@Emre\_Karatasoglu\_Adv](https://community.wowza.com/u/Emre_Karatasoglu_Adv)\
**Post date:** [September 27, 2014, 12:52am UTC](https://community.wowza.com/t/live-stream-recorder/34162/5 "2014-09-27T00:52:26Z")

</div>

Hi vjagannathan , I can’t send you pm , can you make it enable ?
