Skip to main content
Participant
January 15, 2009
Question

Adding files to an existing stream

  • January 15, 2009
  • 1 reply
  • 847 views
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 has been closed for replies.

    1 reply

    January 15, 2009
    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);
    Known Participant
    October 13, 2009

    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.