Skip to main content
Participant
January 31, 2007
Question

How can I append streams/play continously?

  • January 31, 2007
  • 1 reply
  • 238 views
Hi
Two q's in a row, you may officially call me a n00b :)

I have a MP3-streamer app that generates an audio object, and i use NetStream.play() to make it play. (I need the scrubbing and volume an so of the audio object). So when I request a new MP3 file I experience a second or three of pause before the next file starts playing, I've set buffering time to zero.

Is there a way of appending the next file to the end of the file playing so I dont get the pauses? This way I could send over a request for the next file when, say there's 5seconds left of the playing file, then appending the next file and make the files play continously.

I've done this with recording and the publish(..., "append") function, from the client, but now I want the server to append files for me.

Alternatively I could send over the entire playlist at statup and generate the entire stream once if this is possible.

Any thoughts or methods, please?

Thanks, Trond
    This topic has been closed for replies.

    1 reply

    Known Participant
    January 31, 2007
    You might be able to use setInterval() to listen postion of the play head being a a certain point. Then you could send your request.