summaryrefslogtreecommitdiffstats
path: root/play/index.php
Commit message (Collapse)AuthorAgeFilesLines
* Try to fix remote streamingPaul Arthur2013-03-281-21/+12
|
* Some cleanup of play URL handlingPaul Arthur2013-02-071-1/+12
| | | | | | Move parsing from Song into Stream_URL and make it parse more things. Add the type parameter to all generated URLs instead of adding video to Video URLs.
* Log stderr when we transcodePaul Arthur2013-01-281-1/+5
| | | | | Now you shouldn't need to manually run the command to see what went wrong.
* Use Session for stream sessionsPaul Arthur2013-01-281-2/+2
|
* Add an HTML5 playerHolger Brunn2013-01-281-2/+9
| | | | | Merge request #20. Basic, not very pretty, but works and, unlike the Flash player, is maintainable.
* Cosmetics: death to tabsPaul Arthur2013-01-261-229/+229
| | | | | The refactoring I've been doing has reminded me of my strong preference for spaces, and I feel inclined to impose my will on the tree.
* Move access_denied() from lib/ui.lib.php to UIPaul Arthur2013-01-261-7/+7
|
* Cosmetics: s/incase/in case/Paul Arthur2013-01-251-1/+1
|
* Cosmetics: clean up remaining headsPaul Arthur2013-01-251-7/+1
|
* Rework transcodingPaul Arthur2013-01-231-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 playbackPaul Arthur2013-01-231-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 idempotentPaul Arthur2013-01-151-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.3Paul Arthur2012-06-251-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.phpPaul Arthur2012-06-221-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.phpPaul Arthur2012-03-131-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 constructedKarl Vollmer2011-12-011-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 Arthur2011-11-091-5/+4
| | | | | Make sure we don't overrun the Content-Length, plus some minor cosmetics.
* Remove unnecessary call to header()Paul Arthur2011-10-271-1/+0
| | | | Horde_Browser will output a Content-Length header.
* Update Horde_Browser to latest.Paul Arthur2011-10-271-4/+4
|
* Fix forced transcoding. FS#1633.6-alpha1Paul Arthur2011-04-211-0/+1
|
* Transcoding/streaming cleanup.Paul Arthur2011-04-081-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 crapPaul Arthur2011-04-041-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 bugBrady Wetherington2011-03-291-1/+1
| | | | | Byteranges can start with zero - e.g. 0-1 is a valid byterange, and should invoke 'byterange' mode.
* header comment replace for phpdocmomo-i2011-02-031-18/+30
|
* Fix #67 - Don't transcode video files using audio rules even if transcoding ↵Karl Vollmer2010-12-091-1/+1
| | | | is set to always
* Resolve #90 and #89, remove democratic playlist entries if there is a fatal ↵Karl Vollmer2010-12-091-14/+7
| | | | error when trying to play them
* Miscellaneous cleanup.Paul 'flowerysong' Arthur2010-06-131-1/+2
|
* Cosmetics: remove trailing whitespacePaul 'flowerysong' Arthur2010-03-141-129/+129
|
* Add vim modelines to all php files (Thx ascheel)Karl 'vollmerk' Vollmer2010-03-141-0/+1
|
* sync from 3.5.x r2268Karl 'vollmerk' Vollmer2010-02-021-6/+4
|
* Sync from 3.5 branch still untestedKarl 'vollmerk' Vollmer2010-01-251-1/+1
|
* fix missing filename in content disposition for non-transcoded/downloaded ↵Karl 'vollmerk' Vollmer2010-01-131-0/+2
| | | | streams
* sync from branchKarl 'vollmerk' Vollmer2009-07-081-6/+6
|
* fixed #479 if PHP version is 5.3.0 or larger, don't use magic_quotes.momo-i2009-05-271-1/+4
|
* fix typo on get_class() check causing it to not identify song objects correctlyKarl 'vollmerk' Vollmer2009-05-111-2/+2
|
* sync stats fix from 3.5 branchKarl 'vollmerk' Vollmer2009-05-061-3/+5
|
* fix typo causing height to not display on art retrival, update to db ↵Karl 'vollmerk' Vollmer2009-03-151-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' Vollmer2009-03-081-1/+1
| | | | up the config version in prep for another alpha
* fixed missing reference to new variable name when downsamplingKarl 'vollmerk' Vollmer2009-02-081-1/+1
|
* rename the variables, potentially break some stuff, good funKarl 'vollmerk' Vollmer2009-02-071-67/+69
|
* Add very basic buggy as crap video support, fix a few other minor bugs with ↵Karl 'vollmerk' Vollmer2009-02-021-8/+13
| | | | playlists and random elements
* prevent fread($fp,0) if a program seeks to the very end of a fileKarl 'vollmerk' Vollmer2008-11-191-1/+3
|
* more cleanup, added numeric values of ratings to the song xml returnKarl 'vollmerk' Vollmer2008-11-151-4/+4
|
* simplify the logic, and improve it all in one commit.. liesKarl 'vollmerk' Vollmer2008-11-151-1/+1
|
* fix logic, its early give a man a breakKarl 'vollmerk' Vollmer2008-11-151-1/+1
|
* add in require_localnet_session configurationKarl 'vollmerk' Vollmer2008-11-151-1/+5
|
* Commit, still no internet paying for it.. curse you free.frKarl 'vollmerk' Vollmer2008-10-271-1/+2
|
* sync to trunkKarl 'vollmerk' Vollmer2008-08-301-13/+15
|
* only do the seek stuff if the start has a positive valueKarl 'vollmerk' Vollmer2008-08-291-1/+1
|
* sync of fixes from branchKarl 'vollmerk' Vollmer2008-07-301-0/+11
|