Skip to main content
Participating Frequently
July 29, 2010
Question

Detect if a NetStream Video is live

  • July 29, 2010
  • 1 reply
  • 1939 views

Is there something i can check to see if a NetStream Video is a live stream?  I have a DVR app, need the player to snap to live point (if it is live - seek(100000) ? or start from the begining if a recorded video - Ideall a boolean if the stream is live or not...

This topic has been closed for replies.

1 reply

deepanjan_das
Inspiring
July 29, 2010

Hi,

Tou can get to know from the stream url whether its a live stream or not.

A live stream will have no file extension.

Warm Regards

Deepanjan Das

http://deepanjandas.wordpress.com/

DAUKAuthor
Participating Frequently
July 29, 2010

There must be a proper way of doing this?

deepanjan_das
Inspiring
July 29, 2010

Hi,

The other way to know is once the metadata loads, check for duration and it will be 0 in case of live stream.

Warm Regards

Deepanjan Das

http://deepanjandas.wordpress.com/