# we would like to play vod as EPG

**URL:** <https://community.wowza.com/t/we-would-like-to-play-vod-as-epg/48911>\
**Category:** Wowza Developer Dojo\
**Created:** [June 3, 2017, 11:32am UTC](https://community.wowza.com/t/we-would-like-to-play-vod-as-epg/48911 "2017-06-03T11:32:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Grager\_D\_souza](https://avatars.discourse-cdn.com/v4/letter/g/258eb7/32.png) [@Grager\_D\_souza](https://community.wowza.com/u/Grager_D_souza)\
**Post date:** [June 3, 2017, 11:32am UTC](https://community.wowza.com/t/we-would-like-to-play-vod-as-epg/48911/1 "2017-06-03T11:32:52Z")

</div>

Hi there,

I would like to play some videos based on EPG. Every hour I’m recording the content. For example: 12:00, 1:00, 2:00,3:00

If I need to play the vod from 12:15 to 1:15, what exactly i need to do

---

<div class="post-metadata">

**Author:** ![Michelle\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/michelle_b/32/394_2.png) [@Michelle\_B](https://community.wowza.com/u/Michelle_B)\
**Post date:** [June 7, 2017, 1:06am UTC](https://community.wowza.com/t/we-would-like-to-play-vod-as-epg/48911/2 "2017-06-07T01:06:21Z")

</div>

Hi Grager,

You can create a [Stream class playlist](https://www.wowza.com/docs/how-to-switch-streams-using-stream-class-streams), and add the 12:00 recording as a playlist item, but with a start time of 15 minutes. The second item can then be added with a duration of 15 minutes so that it only plays back up to 1:15. Your playlist would look something like:

```auto
playlist3.addItem("mp4:12.mp4", 900, -1);
playlist3.addItem("mp4:13.mp4", 0, 900);

```

Michelle
