# Detect VOD or Live from Java API, get playStart from VOD

**URL:** https://community.wowza.com/t/detect-vod-or-live-from-java-api-get-playstart-from-vod/51879
**Category:** Wowza Developer Dojo
**Tags:** wowza-streaming-server-java-api
**Created:** [September 4, 2018, 3:11pm UTC](https://community.wowza.com/t/detect-vod-or-live-from-java-api-get-playstart-from-vod/51879 "2018-09-04T15:11:23Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Arsel\_Muginov](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@Arsel\_Muginov](https://community.wowza.com/u/Arsel_Muginov)
#### Post date: [September 4, 2018, 3:11pm UTC](https://community.wowza.com/t/detect-vod-or-live-from-java-api-get-playstart-from-vod/51879/1 "2018-09-04T15:11:23Z")

</div>

I don’t want to have same functionality in two modules so I want to detect VOD or Live in methods play, onHTTPSessionCreate, onRTPSessionCreate. If it is Live then I check if stream is published. And if it is VOD then I want to get where on video timeline they disconnected.

I know that I can get stream names with appInstance.getPublishStreamNames(), but how I can detect if IClient and rtpSession are VOD or Live? I only found this functionality in IHTTPStreamerSession.

Also I found out that I can get playStart only with IHTTPStreamerSession again. Can I do this with IClient and rtpSession?

---

<div class="post-metadata">

### Author: ![Arsel\_Muginov](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@Arsel\_Muginov](https://community.wowza.com/u/Arsel_Muginov)
#### Post date: [September 3, 2018, 10:32am UTC](https://community.wowza.com/t/detect-vod-or-live-from-java-api-get-playstart-from-vod/51879/2 "2018-09-03T10:32:31Z")

</div>

I realized that I can use application name for detecting VOD, but the rest is still unknown for me
