Wowza Community

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

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?

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