Skip to main content
Known Participant
Aug 20, 2013 5:05 PM UTC
Question

Check if stream exist on server side

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/WS5b3ccc516d4fbf351e63e3d11a11afc95e-7e42SSASLR.html#WS5b3ccc516d4fbf351e63e3d11a11afc95e-7f39SSASLR

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

5 replies

Known Participant
Aug 22, 2013 5:50 PM UTC

Any one from adobe media staff intrested in answering this ? Is it possible to see if a stream exist in application code server side ?

Translate
Petro_O__Bochan
Inspiring
Aug 22, 2013 6:11 PM UTC

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

Translate
Participating Frequently
Sep 4, 2013 7:58 PM UTC

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 ?

Translate