Skip to main content
flashofscarlet
Inspiring
Oct 8, 2010 7:06 AM UTC
Question

Distinguishing between LIVE and VOD

How do I know that a stream is playing a live stream or from the VOD archive when DVR is enabled? I tried isPlayingLive, it always returns "true", even if it is playing from the archive

    This topic is closed to new replies. Start a new post to keep the conversation going.

    1 reply

    Participating Frequently
    Oct 8, 2010 10:44 AM UTC

    Do you have access to Server-side - meaning can you add server-side code to get this info. If yes you can write function which returns Stream.length. Now from client you just need to make two calls to this function - so if length is same then its VOD but if length is increased then its DVR.

    Now if you don't have access to Server-side - there is another not so good way to do it - you can just note down what duration you receive at first metadata and then after sometime of play do seek - and check duration again in metadata - if its increased you know its DVR

    Translate