For a playlist refresh you might need to implement your own custom scheduler module based on that example and modify the stream playlist directly on the server side.
You can take a look at the Stream.play() method and StreamListener on:
How to do basic server-side publishing with Stream class streams