Skip to main content
Participant
Jan 15, 2009 5:51 PM UTC
Question

Adding files to an existing stream

Can you add files to a stream on the server so that a client of the stream just sees a continuos stream fo data?
    This topic is closed to new replies. Start a new post to keep the conversation going.

    2 replies

    Jan 15, 2009 8:42 PM UTC
    Sure... just add a bunch of play constructors with the reset flag set to false:

    var MyStream = Stream.get("theStream");
    MyStream.play("videoOne", 0, -1);
    MyStream.play("videoTwo", 0, -1, false);
    MyStream.play("videoThree", 0, -1, false);
    MyStream.play("videoFour", 0, -1, false);

    The files will be played in sequence.

    Your clients will subscribe to the stream named theStream. This is a live stream, so the client side play constructor will look like:

    myNetStream.play("theStream", -1, -1);
    Translate
    Known Participant
    Oct 13, 2009 1:07 PM UTC

    can you provide any sample code or tutorial.

    In my application on right side a video playlist each video have one or more than one ads.

    Actually i want to play ads before video play.

    some videos have more than one ads.

    thats why i want two streams or more two streams to play one by one. just like play 1st ad then 2nd ad then video play.

    and the url of my application is "www.samaatvlive.com"

    Thanx in Advance.

    Translate