Skip to main content
Dec 2, 2010 7:06 AM UTC
Question

How to check whether a stream a live or recorded video in FMS?

I don't find such API to indicate whether a stream is live or not.

Anyone knows how to judge this,either by client side or server side actionscript?

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

    4 replies

    Participating Frequently
    Dec 2, 2010 9:20 AM UTC

    Where exactly you want to know about the stream type and what is the reason behind it - i mean for what reason do you want to know whether its live or recorded. On server-side you can use Steam.length() to see if particular stream is recorded or live - if it returns 0 then you can conclude that its live. Also you can use Admin API on application and use functions like getLiveStreams() or getRecordedStreams()

    Translate
    Dec 2, 2010 9:42 AM UTC

    Steam.length()  can't be used to judge whether the stream is live or not.

    Because there may be such occations:

    the first 10 minutes of a live stream is recorded,and the next several minutes not recorded,and so on...

    Maybe getLiveStreams() will work,I'll try it out...

    Translate
    Participating Frequently
    Dec 2, 2010 9:47 AM UTC

    Ok ya probably with your use case it might not work - you can also try Stream.time - see if that works

    Translate