Wowza Community

Shoutcast stream with pre-roll in a server side playlist

Hi Guys

I have been scowering the forum and have as yet been unable to actually find a recent answer to the question. Can I implement a server side playlist that will play a pre-roll/once-off ad whenever a client connects and then once the pre-roll has finished playing it will roll over to the Shoutcast stream?

With those particular requirements, at present, there is not a way.

If the clients are all Flash, it can be done with cooperation of the Flash client using NetStream.onPlayStatus event handler and “Netstream.Play.Complete” notification to start playing the live stream when the pre-roll stream is done.

If the client is not Flash, there is not a way to do vod pre-roll for live stream at present. There is a work-around for iOS:

A similar work-around could be done in a Silverlight player. There is not a similar work-around for RTSP devices and players.

You can play intermittent advertising in a live stream using the Stream class. You can use the scheduler example:

Using this method, the stream can be played on any client and protocol that Wowza supports. But the ad will be intermittent, like tv, not a pre-roll, so it does not meet your requirement.



No, it’s the same. You could do this with a Flash RTMP client involved, but not server-side that would work across clients.



Sorry, I don’t have an update on this. It is still a planned feature, but I don’t have a time frame.


Hi Richard,

I would like to know, now 1 year an a half after your post, if there is a way to do that.

We need to pass to Wowza, dynamically, the VOD filename, and we need Wowza to, at server side, deliver first the VOD, and then the live stream, to devices without a richplayer. I understood the apple workaroud, but this needs to be managed server side entirelly.

Is it possible nowadays with Wowza 3.1.2?



Hi Richard.

16 months ahead from last try, do you have any information about this?

Is this in Wowza plans yet? I heard last year that it was, but without deadlines.

We still need that feature :slight_smile:



Now it’s 2017.
Already possible pre-roll?

Hi Igor,

Do look into our LoopUntilLive module, which uses the Stream class in order to playback a preroll VOD stream and then switch to the live source once the live source is available.