1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-06 03:49:56 +02:00
ampache/lib/class
Paul Arthur e2ca05d5b4 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.
2013-01-15 11:30:47 -05:00
..
access.class.php Switch from _() to T_() 2012-04-12 21:13:29 -04:00
ajax.class.php Add a convenience function to generate an AJAX url 2012-12-19 12:54:58 -05:00
album.class.php Switch from _() to T_() 2012-04-12 21:13:29 -04:00
ampachemail.class.php Clean up some PHPDoc crap 2011-04-04 17:37:10 -04:00
ampacherss.class.php Support setting a custom format for the rss feed 2012-04-13 17:59:16 -04:00
api.class.php Start cleaning up the democratic thing. 2012-10-15 13:20:28 -04:00
art.class.php Switch from print_r to json_encode in debug output 2012-11-13 18:31:33 -05:00
artist.class.php Rip out ugly lyrics code 2012-11-13 18:51:11 -05:00
browse.class.php Use Ajax::action to generate the browse AJAX. 2012-12-19 12:44:20 -05:00
catalog.class.php Fix spurious errors from Catalog::create() 2012-10-18 18:16:30 -04:00
config.class.php Switch from _() to T_() 2012-04-12 21:13:29 -04:00
core.class.php Use spl_autoload_register instead of __autoload 2012-04-18 00:54:54 -04:00
database_object.abstract.php Add clear_cache() to database_object 2011-06-24 11:53:42 -04:00
dba.class.php Clean up remaining direct calls to mysql functions 2012-11-08 14:31:53 -05:00
democratic.class.php Start cleaning up the democratic thing. 2012-10-15 13:20:28 -04:00
error.class.php Clean up some PHPDoc crap 2011-04-04 17:37:10 -04:00
flag.class.php Switch from _() to T_() 2012-04-12 21:13:29 -04:00
localplay.class.php Break Localplay->add(), it's been replaced 2013-01-15 01:26:38 -05:00
localplay_controller.abstract.php Break Localplay->add(), it's been replaced 2013-01-15 01:26:38 -05:00
media.interface.php Clean up some PHPDoc crap 2011-04-04 17:37:10 -04:00
memory_object.class.php Add Stream_URL class for passing them around 2013-01-15 01:26:38 -05:00
playlist.class.php Consistently use 'object_type' in playlist returns 2012-10-15 13:20:27 -04:00
playlist_object.abstract.php Switch from _() to T_() 2012-04-12 21:13:29 -04:00
plugin.class.php Clean up some PHPDoc crap 2011-04-04 17:37:10 -04:00
preference.class.php Clean up uses of Config::set and Config::set_by_array 2012-03-06 12:18:57 -05:00
query.class.php Switch from _() to T_() 2012-04-12 21:13:29 -04:00
radio.class.php Switch from _() to T_() 2012-04-12 21:13:29 -04:00
random.class.php Switch from _() to T_() 2012-04-12 21:13:29 -04:00
rating.class.php Clean up some PHPDoc crap 2011-04-04 17:37:10 -04:00
recommendation.class.php Clean up some PHPDoc crap 2011-04-04 17:37:10 -04:00
registration.class.php Switch from _() to T_() 2012-04-12 21:13:29 -04:00
scrobbler.class.php Cosmetics: fix typo 2012-11-13 18:44:46 -05:00
search.class.php Consistently use 'object_type' in playlist returns 2012-10-15 13:20:27 -04:00
shoutbox.class.php FS#257 - Social comments function not working. 2012-09-17 10:41:13 -04:00
song.class.php Switch from print_r to json_encode in debug output 2012-11-13 18:31:33 -05:00
stats.class.php Clean up some PHPDoc crap 2011-04-04 17:37:10 -04:00
stream.class.php Make playlist downloads idempotent 2013-01-15 11:30:47 -05:00
stream_playlist.class.php Make playlist downloads idempotent 2013-01-15 11:30:47 -05:00
stream_url.class.php Add Stream_URL class for passing them around 2013-01-15 01:26:38 -05:00
tag.class.php Cosmetics: clean up SQL statement in Tag::get_top_tags 2012-03-01 13:03:36 -05:00
tmpplaylist.class.php Cosmetics: correct outdated tmpPlaylist comment 2013-01-15 01:26:37 -05:00
update.class.php Make playlist downloads idempotent 2013-01-15 11:30:47 -05:00
user.class.php FS#202 - Stats not registered on some songs 2012-09-20 12:13:51 -04:00
vainfo.class.php Switch from print_r to json_encode in debug output 2012-11-13 18:31:33 -05:00
vauth.class.php Drop support for old passwords 2012-09-21 14:28:53 -04:00
video.class.php Switch from _() to T_() 2012-04-12 21:13:29 -04:00
xmldata.class.php Cosmetics: xmlData::songs 2012-09-20 11:22:48 -04:00