summaryrefslogtreecommitdiffstats
path: root/lib/class/stream.class.php
Commit message (Collapse)AuthorAgeFilesLines
* Don't open stderr on WindowsHEADtestingremote_catalogmasterPaul Arthur2013-11-051-8/+7
| | | | According to GH #80 Windows can't handle this.
* Stream::start_transcode: Fix typo in queryToilal2013-05-061-1/+1
|
* Use parameterised queries in StreamPaul Arthur2013-01-291-46/+45
|
* Log stderr when we transcodePaul Arthur2013-01-281-1/+11
| | | | | Now you shouldn't need to manually run the command to see what went wrong.
* Use Session for stream sessionsPaul Arthur2013-01-281-109/+9
|
* Yank out the Flash player by the roots.Paul Arthur2013-01-281-3/+0
|
* Add an HTML5 playerHolger Brunn2013-01-281-2/+2
| | | | | Merge request #20. Basic, not very pretty, but works and, unlike the Flash player, is maintainable.
* Cosmetics: death to tabsPaul Arthur2013-01-261-371/+371
| | | | | 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 clean functions into their respective classesPaul Arthur2013-01-251-5/+5
| | | | Uniformly name them gc()
* Cosmetics: clean up heads in lib/Paul Arthur2013-01-251-1/+1
|
* Rework transcodingPaul Arthur2013-01-231-30/+25
| | | | | | | | 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 the bitrate calculationPaul Arthur2013-01-231-22/+30
| | | | Dynamic downsampling, I suppose.
* Tear the offset/eof/size crap out of StreamPaul Arthur2013-01-231-28/+2
| | | | | | Now that playback doesn't pretend it's supported, we don't need the fragile hacks to support guessing the content size or 'seeking' within a transcoded stream.
* Change the gc on stream sessionsPaul Arthur2013-01-151-19/+2
| | | | | | It's a little suspect to automatically delete them just because another was used. Waiting for them to expire will get rid of them plenty quick, with less chance for weird issues.
* Make playlist downloads idempotentPaul Arthur2013-01-151-454/+10
| | | | | | | | | | | | | | | | | | | | 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.
* Cosmetics: remove unused variables in StreamPaul Arthur2013-01-141-2/+0
|
* Start cleaning up the democratic thing.Paul Arthur2012-10-151-2/+2
| | | | | Whoever wrote the old implementation of get_items suffered from intense fear and hatred of SQL.
* escapeshellarg's behaviour is locale-dependentPaul Arthur2012-05-251-1/+1
| | | | Reimplement it locally so it isn't. Might fix FS#252.
* FS#224 - generated .pls playlist doesn't work in some playersBrian Hasselbeck2012-04-111-1/+1
| | | | | | Initial tag is case sensitive; we were emitting [Playlist] but some players don't accept that. There is unfortunately no real standard to check, but this does match what Winamp (ack, pthbbt) does.
* Update Horde_Browser to latest.Paul Arthur2011-10-271-1/+0
|
* Transcoding/streaming cleanup.Paul Arthur2011-04-081-52/+62
| | | | | | 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-9/+0
| | | | | | Remove misleading, unvetted, or in some cases just plain wrong data. Packages and categories weren't being used correctly. They still aren't.
* header comment modified for phpdocmomo-i2011-02-031-1/+1
|
* header comment for phpdocmomo-i2011-02-031-1/+11
|
* test header for phpdoc. now using only classes and libraries.momo-i2011-02-021-18/+29
|
* JavaScript cleanup. Consistently use camelCase for naming JS functions. UsePaul 'flowerysong' Arthur2010-06-241-2/+1
| | | | | | | Prototype functionality where possible (particularly for Ajax). Move our JS into lib/javascript (I dropped kajax as an external module since the new ajax.js is completely different apart from function headers.) Remove unused JS functions from base.js.
* Miscellaneous cleanup.Paul 'flowerysong' Arthur2010-06-131-5/+6
|
* Change debugging output on transcode.Paul 'flowerysong' Arthur2010-05-291-1/+1
|
* make downsampling command log a little clearerKarl 'vollmerk' Vollmer2010-05-051-1/+1
|
* Fix seeking in flacs by adjusting the skip to MM:SS from MM.SSKarl 'vollmerk' Vollmer2010-03-211-1/+7
|
* typo :(Karl 'vollmerk' Vollmer2010-03-211-1/+1
|
* Resolved #39 - slightly differently then provided patch - Adds attribute ↵Karl 'vollmerk' Vollmer2010-03-211-0/+7
| | | | hack to keyd_array in xmlclass and video xspf support
* Cosmetics: remove trailing whitespacePaul 'flowerysong' Arthur2010-03-141-244/+244
|
* Cosmetics: use tabs for indentation, tweak some indentation/coding style.Paul 'flowerysong' Arthur2010-03-141-154/+154
|
* Add vim modelines to all php files (Thx ascheel)Karl 'vollmerk' Vollmer2010-03-141-0/+1
|
* Fix typos, and tweak insert_now_playing preping for Video now playingKarl 'vollmerk' Vollmer2010-02-141-2/+2
|
* Sync from 3.5 branch still untestedKarl 'vollmerk' Vollmer2010-01-251-1/+1
|
* untested change which should fix some stupididity with the flash playerKarl 'vollmerk' Vollmer2010-01-251-8/+2
|
* whole bunch more Dba::query replacementsKarl 'vollmerk' Vollmer2009-12-141-8/+8
|
* sync to trunk from 3.5 branchKarl 'vollmerk' Vollmer2009-06-211-0/+1
|
* add download for video that does not work, and most likely break song ↵Karl 'vollmerk' Vollmer2009-05-151-9/+12
| | | | downloads \o/
* tweaked fix for rss feed, makes it a little cleaner, fix custom port issue ↵Karl 'vollmerk' Vollmer2009-04-131-7/+9
| | | | add debug event on unreadable, but still existing files
* some tweaks to make the random play mojo work for streaming, does not work ↵Karl 'vollmerk' Vollmer2009-04-081-1/+7
| | | | in localplay yet, working on that, nor in democratic play poking that also include asx playlist improvements from jon611
* correct mime type for asx to match Microsoft specKarl 'vollmerk' Vollmer2009-03-291-1/+1
|
* fix typo causing height to not display on art retrival, update to db ↵Karl 'vollmerk' Vollmer2009-03-151-3/+52
| | | | allowing gc of tmp_browse, add extension to api album art image urls
* fix xspf playlists - fixes flash player displayKarl 'vollmerk' Vollmer2009-03-131-4/+4
|
* fix missing page headers on democratic playlist, also show the votersKarl 'vollmerk' Vollmer2009-03-111-11/+14
|
* add length to the video browse, put in some stuff for the now playing table ↵Karl 'vollmerk' Vollmer2009-03-081-3/+3
| | | | up the config version in prep for another alpha
* fix download and batch download Addresses #408 and #407Karl 'vollmerk' Vollmer2009-03-071-2/+1
|
* typoKarl 'vollmerk' Vollmer2009-03-021-1/+1
|