mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 01:34:40 +01:00
Revert "Fix: safari requires one big range of video"
This reverts commit 7a946911b9
.
This commit is contained in:
parent
8ae9696d0f
commit
b2a8038b30
@ -100,13 +100,6 @@ final class ResponseInfo
|
||||
}
|
||||
$seek_start = empty($seek_start) ? 0 : \abs(\intval($seek_start));
|
||||
|
||||
//Safari video streaming fix
|
||||
$length = ($seek_end - $seek_start + 1);
|
||||
$maxChunkSize = 10 * 1024 ** 2;
|
||||
if ($length > $maxChunkSize) {
|
||||
$seek_end = $seek_start + $maxChunkSize - 1;
|
||||
}
|
||||
|
||||
$this->serve = $method !== 'HEAD';
|
||||
if ($seek_start > 0 || $seek_end < $size - 1) {
|
||||
$this->code = HttpStatus::PARTIAL_CONTENT;
|
||||
|
Loading…
Reference in New Issue
Block a user