| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
bea34c42 fixed one use of is_readable, but Windows users encountering
this issue would still be affected in other cases. This commit fixes
all of the important is_readable calls within Ampache; I'm not going
to hack this into external modules, so if they're broken people will
have to live with it.
|
|
|
|
|
|
|
|
|
| |
Include the correct type parameter in the URL and rename the random
type parameter to random_type.
Remove unused parameters from the function call.
Should fix issue #11
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Now you shouldn't need to manually run the command to see what went
wrong.
|
| |
|
|
|
|
|
| |
Merge request #20. Basic, not very pretty, but works and, unlike the
Flash player, is maintainable.
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
We require 5.3, so this code has no effect other than to throw warnings.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
in init (which makes me wonder) and started trying to figure out why libre.fm broke
|
|
|
|
|
| |
Make sure we don't overrun the Content-Length, plus some minor
cosmetics.
|
|
|
|
| |
Horde_Browser will output a Content-Length header.
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
Remove misleading, unvetted, or in some cases just plain wrong data.
Packages and categories weren't being used correctly. They still
aren't.
|
|
|
|
|
| |
Byteranges can start with zero - e.g. 0-1 is a valid byterange, and should
invoke 'byterange' mode.
|
| |
|
|
|
|
| |
is set to always
|
|
|
|
| |
error when trying to play them
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
streams
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
allowing gc of tmp_browse, add extension to api album art image urls
|
|
|
|
| |
up the config version in prep for another alpha
|
| |
|
| |
|
|
|
|
| |
playlists and random elements
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|