# How to get the recording status of a stream when using liveStreamRecord

**URL:** <https://community.wowza.com/t/how-to-get-the-recording-status-of-a-stream-when-using-livestreamrecord/34553>\
**Category:** Wowza Streaming Engine\
**Created:** [December 22, 2014, 4:20pm UTC](https://community.wowza.com/t/how-to-get-the-recording-status-of-a-stream-when-using-livestreamrecord/34553 "2014-12-22T16:20:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Graeme\_Bull](https://avatars.discourse-cdn.com/v4/letter/g/cc9497/32.png) [@Graeme\_Bull](https://community.wowza.com/u/Graeme_Bull)\
**Post date:** [December 22, 2014, 4:20pm UTC](https://community.wowza.com/t/how-to-get-the-recording-status-of-a-stream-when-using-livestreamrecord/34553/1 "2014-12-22T16:20:44Z")

</div>

I’ve been trying to get the status of a stream if it’s being recorded but can’t with the isRecord() method on the stream object on the server side. Is there another way to get the status of a stream if it’s being recorded? For example, if you use the admin 8086 ported “livestreamrecord” page then you can see the streams that are in there and if they are being recorded or not. How would I retrieve that value?

---

<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:** [December 23, 2014, 7:32am UTC](https://community.wowza.com/t/how-to-get-the-recording-status-of-a-stream-when-using-livestreamrecord/34553/2 "2014-12-23T07:32:22Z")

</div>

Hello there.

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_RECORDING){
  // do something
}
//etc..

```

I hope this answers your question.

Kind regards,

Salvadore

---

<div class="post-metadata">

**Author:** ![Graeme\_Bull](https://avatars.discourse-cdn.com/v4/letter/g/cc9497/32.png) [@Graeme\_Bull](https://community.wowza.com/u/Graeme_Bull)\
**Post date:** [December 23, 2014, 11:11am UTC](https://community.wowza.com/t/how-to-get-the-recording-status-of-a-stream-when-using-livestreamrecord/34553/3 "2014-12-23T11:11:48Z")

</div>

Thanks Salvadore. How would I check on particular streams? It looks like I have to iterate over every single application instance on the server, collect all the recorders, then look inside that map? Does the map hold information on the stream name? If so, how would I retrieve that?

---

<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:** [December 25, 2014, 7:05am UTC](https://community.wowza.com/t/how-to-get-the-recording-status-of-a-stream-when-using-livestreamrecord/34553/4 "2014-12-25T07:05:57Z")

</div>

You can add this code to an Application module, and then iterate through only the streams published to that application.

You might do something like this:

```auto
if (recorder.getStreamName().equals("mySpeciaStream")) {
// doSomthing
}

```

Kind regards,

Salvadore
