# Recording status of a stream file via HTTP Provider

**URL:** https://community.wowza.com/t/recording-status-of-a-stream-file-via-http-provider/42020
**Category:** Wowza Developer Dojo
**Tags:** wowza-streaming-server-java-api
**Created:** [October 30, 2014, 5:25pm UTC](https://community.wowza.com/t/recording-status-of-a-stream-file-via-http-provider/42020 "2014-10-30T17:25:03Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Nineesh\_K\_Dasan](https://avatars.discourse-cdn.com/v4/letter/n/bbce88/32.png) [@Nineesh\_K\_Dasan](https://community.wowza.com/u/Nineesh_K_Dasan)
#### Post date: [October 30, 2014, 5:25pm UTC](https://community.wowza.com/t/recording-status-of-a-stream-file-via-http-provider/42020/1 "2014-10-30T17:25:03Z")

</div>

Hi,

How can I get the recording status of a livestream via http url.

for: eg: [http://wowza-url:2000/recordingstatus?stream=1.stream](http://wowza-url:2000/recordingstatus?stream=1.stream)

I would like the recording status result will return, like any of the following, based on the current status:

> 1. 1.stream - RECORDER\_STATE\_RECORDING
> 
> 2. 1.stream - RECORDER\_STATE\_ERROR
> 
> 3. 1.stream - RECORDER\_STATE\_PENDING
> 
> 4. 1.stream - RECORDER\_STATE\_WAITING

Currently I am recording the live stream using module livestreamrecord.

Tnx,

Nin

---

<div class="post-metadata">

### Author: ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)
#### Post date: [October 30, 2014, 8:34am UTC](https://community.wowza.com/t/recording-status-of-a-stream-file-via-http-provider/42020/2 "2014-10-30T08:34:13Z")

</div>

Hello there,

There is nothing built in currently to do what you are describing. But you could write an HTTPProvider to achieve this.

You will need the Wowza IDE:

[Wowza IDE](https://www.wowza.com/streaming/developers/wowza-ide-software-update)

And the IDE User Guide has a section on HTTPProviders:

[IDE User Guide](https://www.wowza.com/uploads/developers/WowzaIDE_UsersGuide.pdf)

**NOTE:** when installing the IDE do not copy the **Location: [wowza.com/wowzaide2](http://wowza.com/wowzaide2)** from the Wowza website, this will add extra information that “breaks” the install. you will need to type in “**[wowza.com/wowzaide2](http://wowza.com/wowzaide2)**” for the URL in Eclipse

If you need assistance with this project you can post a request to the[find a consultant forum](http://community.wowza.com/c/-/7)

Kind regards,

Salvadore

---

<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: [October 30, 2014, 2:02pm UTC](https://community.wowza.com/t/recording-status-of-a-stream-file-via-http-provider/42020/3 "2014-10-30T14:02:54Z")

</div>

If you do this in an http provider, you can grab a reference to your IStreamRecorder objects and check them as follows:

```auto
Map<String, IStreamRecorder> recordingMap = vhost.getLiveStreamRecordManager().getRecordersMap(appInstance);

```

Then you could iterate through the recorders and check the recorder.getRecorderState() as follows:

```auto
int recordState = recorder.getRecorderState();
if(recordState == IStreamRecorderConstants.RECORDER_STATE_ERROR){
  // do something
}
//etc..

```

---

<div class="post-metadata">

### Author: ![Nineesh\_K\_Dasan](https://avatars.discourse-cdn.com/v4/letter/n/bbce88/32.png) [@Nineesh\_K\_Dasan](https://community.wowza.com/u/Nineesh_K_Dasan)
#### Post date: [October 31, 2014, 3:25pm UTC](https://community.wowza.com/t/recording-status-of-a-stream-file-via-http-provider/42020/4 "2014-10-31T15:25:35Z")

</div>

Hi Matt, Salvadore,

Thank you very much for the support.

I have created a custom http provider, as per your directions.

Its working perfectly. 😃

Kind Regards,

Nin
