From e2ca05d5b419944adb3723ab0253c7c35418a0e4 Mon Sep 17 00:00:00 2001 From: Paul Arthur Date: Tue, 15 Jan 2013 00:56:42 -0500 Subject: Make playlist downloads idempotent Should fix the VLC plugin, as well as allow direct use of an Ampache site on Android devices. First, split the Stream class into an instantiable class that does the playlist wrangling and a static class that handles the streaming stuff. How does this work? Well, stream.php does its fancy stuff like gathering the media IDs and clearing the playlist, but instead of generating the playlist file there we use the Stream_Playlist class to store the list of URLs in the database, then redirect to play/index.php to create the actual download (there are some magic playlist types like localplay that don't need to redirect.) The playlist will be cached as long as that stream session is active, so it can be downloaded multiple times and by clients that don't share the browser's cookie cache. Clean up the playlist generation by reducing copypasta. --- docs/CHANGELOG | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docs/CHANGELOG') diff --git a/docs/CHANGELOG b/docs/CHANGELOG index 1b7ff2d4..a839d76a 100755 --- a/docs/CHANGELOG +++ b/docs/CHANGELOG @@ -4,6 +4,8 @@ -------------------------------------------------------------------------- v.3.6-FUTURE + - Fixed streaming on Android devices and anything else that expects to + be able to pass a playlist URL to an application and have it work - Removed the SHOUTcast localplay controller -------------------------------------------------------------------------- -- cgit