Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move access_denied() from lib/ui.lib.php to UI | Paul Arthur | 2013-01-26 | 1 | -7/+7 |
| | |||||
* | Cosmetics: s/incase/in case/ | Paul Arthur | 2013-01-25 | 1 | -1/+1 |
| | |||||
* | Cosmetics: clean up remaining heads | Paul Arthur | 2013-01-25 | 1 | -7/+1 |
| | |||||
* | Rework transcoding | Paul Arthur | 2013-01-23 | 1 | -24/+45 |
| | | | | | | | | Remove some of the roundabout complexity that had built up. Push people toward using a single, flexible tool for most of their transcoding needs. Increase backend and configuration flexibility to support user-requested format changes (e.g. for an HTML5 player); this functionality is not yet exposed. | ||||
* | Clean up Content-Range handling for playback | Paul Arthur | 2013-01-23 | 1 | -26/+56 |
| | | | | | | | | | | | | | | | Transcoding can't cleanly support Content-Range, so ignore it if we receive it and send 'Accept-Ranges: none' so smart clients won't send it. The logic that determines when enough has been streamed that the stream should be recorded in the stats was complexified. Since we've given up on predetermining the file size for transcodes we have to account for that. Content-Ranges that start well into the file now won't update the stats, since we've probably already done it (this assumption is wrong if the client immediately seeks, but nothing's perfect.) Finally, a straight file size / 4 seemed too straighforward, so small files will be / 1.1 and large files will have the value capped. | ||||
* | Make playlist downloads idempotent | Paul Arthur | 2013-01-15 | 1 | -1/+22 |
| | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | Drop conditional for PHP < 5.3 | Paul Arthur | 2012-06-25 | 1 | -6/+0 |
| | | | | We require 5.3, so this code has no effect other than to throw warnings. | ||||
* | Clean up uses of isset in play/index.php | Paul Arthur | 2012-06-22 | 1 | -7/+8 |
| | | | | | | | | Among other things, guest users were able to stream songs because isset($xml_rpc) always returned true. That check was removed entirely; if it breaks something, that breakage will need to be solved differently. Changing the access level required to do something based on a user-controlled GET parameter is wrong. | ||||
* | Refactor similar init code into new init-tiny.php | Paul Arthur | 2012-03-13 | 1 | -1/+0 |
| | | | | | | | | | Several places were doing operations that were practically the same (loading core libraries and setting some variables), with varying levels of success in remembering to do the right things in the right order. Making a separate minimal init.php that doesn't worry about some of the sanity checks and session bumpf makes this cleaner and easier to maintain. | ||||
* | Fixed two PHP warnings, and some issues with how users were being constructed | Karl Vollmer | 2011-12-01 | 1 | -0/+1 |
| | | | | in init (which makes me wonder) and started trying to figure out why libre.fm broke | ||||
* | Some cleanup of the streaming code. | Paul Arthur | 2011-11-09 | 1 | -5/+4 |
| | | | | | Make sure we don't overrun the Content-Length, plus some minor cosmetics. | ||||
* | Remove unnecessary call to header() | Paul Arthur | 2011-10-27 | 1 | -1/+0 |
| | | | | Horde_Browser will output a Content-Length header. | ||||
* | Update Horde_Browser to latest. | Paul Arthur | 2011-10-27 | 1 | -4/+4 |
| | |||||
* | Fix forced transcoding. FS#1633.6-alpha1 | Paul Arthur | 2011-04-21 | 1 | -0/+1 |
| | |||||
* | Transcoding/streaming cleanup. | Paul Arthur | 2011-04-08 | 1 | -68/+60 |
| | | | | | | Derive our new filesize from the length, not the previous bitrate and size. Allow higher bitrates than the source when they're different formats. Return HTTP error codes when an error occurs. Minor cleanup. | ||||
* | Clean up some PHPDoc crap | Paul Arthur | 2011-04-04 | 1 | -6/+1 |
| | | | | | | Remove misleading, unvetted, or in some cases just plain wrong data. Packages and categories weren't being used correctly. They still aren't. | ||||
* | Fix byterange bug | Brady Wetherington | 2011-03-29 | 1 | -1/+1 |
| | | | | | Byteranges can start with zero - e.g. 0-1 is a valid byterange, and should invoke 'byterange' mode. | ||||
* | header comment replace for phpdoc | momo-i | 2011-02-03 | 1 | -18/+30 |
| | |||||
* | Fix #67 - Don't transcode video files using audio rules even if transcoding ↵ | Karl Vollmer | 2010-12-09 | 1 | -1/+1 |
| | | | | is set to always | ||||
* | Resolve #90 and #89, remove democratic playlist entries if there is a fatal ↵ | Karl Vollmer | 2010-12-09 | 1 | -14/+7 |
| | | | | error when trying to play them | ||||
* | Miscellaneous cleanup. | Paul 'flowerysong' Arthur | 2010-06-13 | 1 | -1/+2 |
| | |||||
* | Cosmetics: remove trailing whitespace | Paul 'flowerysong' Arthur | 2010-03-14 | 1 | -129/+129 |
| | |||||
* | Add vim modelines to all php files (Thx ascheel) | Karl 'vollmerk' Vollmer | 2010-03-14 | 1 | -0/+1 |
| | |||||
* | sync from 3.5.x r2268 | Karl 'vollmerk' Vollmer | 2010-02-02 | 1 | -6/+4 |
| | |||||
* | Sync from 3.5 branch still untested | Karl 'vollmerk' Vollmer | 2010-01-25 | 1 | -1/+1 |
| | |||||
* | fix missing filename in content disposition for non-transcoded/downloaded ↵ | Karl 'vollmerk' Vollmer | 2010-01-13 | 1 | -0/+2 |
| | | | | streams | ||||
* | sync from branch | Karl 'vollmerk' Vollmer | 2009-07-08 | 1 | -6/+6 |
| | |||||
* | fixed #479 if PHP version is 5.3.0 or larger, don't use magic_quotes. | momo-i | 2009-05-27 | 1 | -1/+4 |
| | |||||
* | fix typo on get_class() check causing it to not identify song objects correctly | Karl 'vollmerk' Vollmer | 2009-05-11 | 1 | -2/+2 |
| | |||||
* | sync stats fix from 3.5 branch | Karl 'vollmerk' Vollmer | 2009-05-06 | 1 | -3/+5 |
| | |||||
* | fix typo causing height to not display on art retrival, update to db ↵ | Karl 'vollmerk' Vollmer | 2009-03-15 | 1 | -3/+2 |
| | | | | allowing gc of tmp_browse, add extension to api album art image urls | ||||
* | add length to the video browse, put in some stuff for the now playing table ↵ | Karl 'vollmerk' Vollmer | 2009-03-08 | 1 | -1/+1 |
| | | | | up the config version in prep for another alpha | ||||
* | fixed missing reference to new variable name when downsampling | Karl 'vollmerk' Vollmer | 2009-02-08 | 1 | -1/+1 |
| | |||||
* | rename the variables, potentially break some stuff, good fun | Karl 'vollmerk' Vollmer | 2009-02-07 | 1 | -67/+69 |
| | |||||
* | Add very basic buggy as crap video support, fix a few other minor bugs with ↵ | Karl 'vollmerk' Vollmer | 2009-02-02 | 1 | -8/+13 |
| | | | | playlists and random elements | ||||
* | prevent fread($fp,0) if a program seeks to the very end of a file | Karl 'vollmerk' Vollmer | 2008-11-19 | 1 | -1/+3 |
| | |||||
* | more cleanup, added numeric values of ratings to the song xml return | Karl 'vollmerk' Vollmer | 2008-11-15 | 1 | -4/+4 |
| | |||||
* | simplify the logic, and improve it all in one commit.. lies | Karl 'vollmerk' Vollmer | 2008-11-15 | 1 | -1/+1 |
| | |||||
* | fix logic, its early give a man a break | Karl 'vollmerk' Vollmer | 2008-11-15 | 1 | -1/+1 |
| | |||||
* | add in require_localnet_session configuration | Karl 'vollmerk' Vollmer | 2008-11-15 | 1 | -1/+5 |
| | |||||
* | Commit, still no internet paying for it.. curse you free.fr | Karl 'vollmerk' Vollmer | 2008-10-27 | 1 | -1/+2 |
| | |||||
* | sync to trunk | Karl 'vollmerk' Vollmer | 2008-08-30 | 1 | -13/+15 |
| | |||||
* | only do the seek stuff if the start has a positive value | Karl 'vollmerk' Vollmer | 2008-08-29 | 1 | -1/+1 |
| | |||||
* | sync of fixes from branch | Karl 'vollmerk' Vollmer | 2008-07-30 | 1 | -0/+11 |
| | |||||
* | fixed the albums/artists I broke a few revs ago and sync of the download ↵ | Karl 'vollmerk' Vollmer | 2008-07-15 | 1 | -3/+3 |
| | | | | stats fix from branch | ||||
* | first steps of a fix for the xml-rpc streaming and cataloging | Karl 'vollmerk' Vollmer | 2008-04-15 | 1 | -22/+34 |
| | |||||
* | slight tweak, do not impose play % restrictions on democratic play items | Karl 'vollmerk' Vollmer | 2008-03-17 | 1 | -9/+9 |
| | |||||
* | flush out the democratic mojo, make the cooldown work | Karl 'vollmerk' Vollmer | 2008-03-17 | 1 | -4/+19 |
| | |||||
* | fixed the issue with a lack of gettext (define ngettext if it does not exist) | Karl 'vollmerk' Vollmer | 2008-03-14 | 1 | -0/+1 |
| | |||||
* | major corrections to reading of preferences and a few misc fixes which I ↵ | Karl 'vollmerk' Vollmer | 2008-02-29 | 1 | -5/+5 |
| | | | | have now forgotten |