Detect if stream is a DVR store stream

I need to do some logging for streams. But for certain streams events get called again if someone is playing something from the DVR store. Is it possible to detect if a stream is playing from DVR store and not live?

I need to make a distinction between the two. I tried getting the query parameters but that was unsuccesful.

You might be able to obtain that information by invoking getDvrSessionInfo function on a per session basis.