Skip to main content
October 6, 2010
Answered

How to judge whether a specific video stream is alive?

  • October 6, 2010
  • 1 reply
  • 338 views

We need different parameters to play live/playback:

  // play live from server
  //ns.play("test",-1,-1,true);
  //playback
  //ns.play("test",0);

So how to wrap it all up so that it'll automatically detect whether the stream to play is alive,and use the proper parameters ?

    This topic has been closed for replies.
    Correct answer SE_0208

    I did not get you question properly but i suppose you can use ns.play("streamname",-2,-1,true)

    When start is -2, it looks for a live stream, then a recorded stream, and if it finds neither, opens a live stream.

    1 reply

    SE_0208Correct answer
    Participating Frequently
    October 6, 2010

    I did not get you question properly but i suppose you can use ns.play("streamname",-2,-1,true)

    When start is -2, it looks for a live stream, then a recorded stream, and if it finds neither, opens a live stream.