summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorPaul Arthur <flowerysong00@yahoo.com>2013-01-21 12:54:04 -0500
committerPaul Arthur <paul.arthur@flowerysong.com>2013-01-23 13:06:45 -0500
commite387a4caaf2b596c76cc6ff91bb2334c9bbd81d7 (patch)
treee5ae08736720b449f658e14203896359aae480e4 /docs
parent984c738187b167d5ccd15263d45ac4ec0c3938dc (diff)
downloadampache-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