diff options
author | Paul Arthur <flowerysong00@yahoo.com> | 2013-01-21 12:54:04 -0500 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2013-01-23 13:06:45 -0500 |
commit | e387a4caaf2b596c76cc6ff91bb2334c9bbd81d7 (patch) | |
tree | e5ae08736720b449f658e14203896359aae480e4 /docs | |
parent | 984c738187b167d5ccd15263d45ac4ec0c3938dc (diff) | |
download | ampache-e387a4caaf2b596c76cc6ff91bb2334c9bbd81d7.tar.gz ampache-e387a4caaf2b596c76cc6ff91bb2334c9bbd81d7.tar.bz2 ampache-e387a4caaf2b596c76cc6ff91bb2334c9bbd81d7.zip |
Clean up Content-Range handling for playback
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.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions