Skip to main content
flashofscarlet
Inspiring
October 8, 2010
Question

Distinguishing between LIVE and VOD

  • October 8, 2010
  • 1 reply
  • 425 views

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 has been closed for replies.

    1 reply

    Participating Frequently
    October 8, 2010

    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