Page 1 of 1

Stream Connection

PostPosted: Sat Nov 01, 2008 7:00 am
by mornindew
Hi all,
There might be an easy solution to this but I don't know of any off hand. I am building a new controller that will have an imbedded flash player. Is there a way to tell on the server side whether the stream has completed (or finished the playlist)? I want to be able to automatically refresh the playlist with new music. Thank you for your help. Craig

PostPosted: Sat Nov 01, 2008 7:13 am
by sindre_mehus
There is some similar functionality in PlaylistInputStream.java, line 91:

Code: Select all
// If playlist is in auto-random mode, populate it with new random songs.
if (playlist.getIndex() == -1 && playlist.getRandomSearchCriteria() != null) {
    populateRandomPlaylist(playlist);
}