Shoutcast stream with pre-roll in a server side playlist
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: