Skip navigation
StreamLine700
Currently Being Moderated

Check if stream exist on server side

Aug 20, 2013 10:59 AM

Tags: #flash #live #stream #live_streaming

I have an application to which a user publishes live stream . Before publishing stream I need to check if stream already exist . How can I do that ? I used

 

myStream = Stream.get(streamName)

if(myStream){

     trace("Exist");

}else{

     trace("Not Exist");

}

 

It always returns true and it looks like it creates a stream if it doesnt exist . How else can I check this ? If stream already exist and if some one replublishes it , stream looks little jittery .

 

http://help.adobe.com/en_US/flashmediaserver/ssaslr/WS5b3ccc516d4fbf35 1e63e3d11a11afc95e-7e42SSASLR.html#WS5b3ccc516d4fbf351e63e3d11a11afc95 e-7f39SSASLR

 
Replies
  • Currently Being Moderated
    Aug 22, 2013 11:11 AM   in reply to StreamLine700

    Go for Stream.length() found on the same doc page.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 4, 2013 12:58 PM   in reply to Petro Bochan

    Stream.length returns 0 always for a live stream even though the stream already exist on server , and is playing . Is it only for files and not live streams ?

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 6, 2013 8:08 AM   in reply to MulticastManiac

    Anyone ?

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 7, 2013 12:41 AM   in reply to MulticastManiac

    Since this is a live stream, you can't expect hardware persistence but this can be implemented using SharedObject. Design your app that way so that when a user starts publishing a stream, a stream name gets added to a SharedObject so that when a different user tries to publish a stream he/she will know what stream names are currently in use.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points