# playlist livestream record

**URL:** <https://community.wowza.com/t/playlist-livestream-record/39035>\
**Category:** Wowza Streaming Engine\
**Created:** [February 20, 2014, 9:46am UTC](https://community.wowza.com/t/playlist-livestream-record/39035 "2014-02-20T09:46:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arpan\_Darivemula](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@Arpan\_Darivemula](https://community.wowza.com/u/Arpan_Darivemula)\
**Post date:** [February 20, 2014, 9:46am UTC](https://community.wowza.com/t/playlist-livestream-record/39035/1 "2014-02-20T09:46:48Z")

</div>

Hello

We have a playlist list with vod - live - vod. How would we go about recording only the live stream in this scenario.

Since this is a stream class stream, how would we tie into the onpublish event of just the livestream? here do we tie in the ServerListernerStreamPublisher for this?

Thank you

Arpan

---

<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:** [February 20, 2014, 11:04am UTC](https://community.wowza.com/t/playlist-livestream-record/39035/2 "2014-02-20T11:04:27Z")

</div>

You can use the IMediaActionNotify3 interface in conjunction with the Live Stream Record API:

[How to start and stop live stream recordings programmatically (IMediaStreamActionNotify3)](https://www.wowza.com/docs/how-to-start-and-stop-live-stream-recordings-programmatically-imediastreamactionnotify3%28IMediaStreamActionNotify3%29)

[How to record live streams (HTTPLiveStreamRecord)](https://www.wowza.com/docs/how-to-record-live-streams-httplivestreamrecord%28HTTPLiveStreamRecord%29)

Salvadore

---

<div class="post-metadata">

**Author:** ![Arpan\_Darivemula](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@Arpan\_Darivemula](https://community.wowza.com/u/Arpan_Darivemula)\
**Post date:** [February 20, 2014, 11:19am UTC](https://community.wowza.com/t/playlist-livestream-record/39035/3 "2014-02-20T11:19:22Z")

</div>

Hello,

But in a stream class stream, isnt the entire playlist 1 livestream? Putting an IMediaActionNotify3 on that would encompass the whole stream which we dont want. we only want the livestream portion of it, how would we determine in a stream class stream which one is an actual livestream and which is a vod when both are within the same playlist?

---

<div class="post-metadata">

**Author:** ![Arpan\_Darivemula](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@Arpan\_Darivemula](https://community.wowza.com/u/Arpan_Darivemula)\
**Post date:** [February 20, 2014, 12:02pm UTC](https://community.wowza.com/t/playlist-livestream-record/39035/4 "2014-02-20T12:02:37Z")

</div>

ill try it out, thank you

---

<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:** [February 20, 2014, 12:01pm UTC](https://community.wowza.com/t/playlist-livestream-record/39035/5 "2014-02-20T12:01:29Z")

</div>

You will have to modify the example. In the onPublish method you would write the code to record the streams you want to record.

You may wish to use a naming convention to easily distinguish between streams to record, and streams to ignore.

Salvadore
