# Setting DVR properties using code in wowza 3.6.4 doesn't work?

**URL:** <https://community.wowza.com/t/setting-dvr-properties-using-code-in-wowza-3-6-4-doesnt-work/41466>\
**Category:** Wowza Streaming Engine\
**Created:** [February 23, 2014, 6:32pm UTC](https://community.wowza.com/t/setting-dvr-properties-using-code-in-wowza-3-6-4-doesnt-work/41466 "2014-02-23T18:32:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jordi\_Cenzano](https://avatars.discourse-cdn.com/v4/letter/j/e36b37/32.png) [@Jordi\_Cenzano](https://community.wowza.com/u/Jordi_Cenzano)\
**Post date:** [February 23, 2014, 6:32pm UTC](https://community.wowza.com/t/setting-dvr-properties-using-code-in-wowza-3-6-4-doesnt-work/41466/1 "2014-02-23T18:32:26Z")

</div>

Hello I used the code of the example [DVR recording API](https://www.wowza.com/docs/how-to-use-wowza-ndvr-recording-api) to set the dvrMaximumRecordingLength property of a DVR stream. The final code is:

```auto
               
//Set a property to limit recording time
Object nTmpFin = 0;
WMSProperties prop = dvrRecorder.getProperties();
                	
dvrRecorder.getProperties().setProperty("dvrMaximumRecordingLength", 60);
                	
nTmpFin = dvrRecorder.getProperties().getProperty("dvrMaximumRecordingLength");                

```

The nTmpFin = 60, but the server continues using the value of the application.xml. Any idea about how to set dvrMaximumRecordingLength using code?

---

<div class="post-metadata">

**Author:** ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)\
**Post date:** [March 3, 2014, 12:32pm UTC](https://community.wowza.com/t/setting-dvr-properties-using-code-in-wowza-3-6-4-doesnt-work/41466/2 "2014-03-03T12:32:45Z")

</div>

There is an open ticket referring to this issue,

```auto
#83049

```

. Please refer to it moving forward.
